diff --git a/nativescript-angular/resource-loader.ts b/nativescript-angular/resource-loader.ts index f9f5ca9a5..5503dfa72 100644 --- a/nativescript-angular/resource-loader.ts +++ b/nativescript-angular/resource-loader.ts @@ -16,12 +16,12 @@ export class FileSystemResourceLoader extends ResourceLoader { super(); } - get(url: string): Promise { + get(url: string): string { const resolvedPath = this.resolve(url); const templateFile = this.fs.fileFromPath(resolvedPath); - return templateFile.readText(); + return templateFile.readTextSync(); } resolve(url: string): string {