From f1cb5cd167e1fbf25b663926f36dc34f40559d15 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Fri, 25 Oct 2019 22:28:41 +0300 Subject: [PATCH] fix: make FileSystemResourceLoader sync again --- nativescript-angular/resource-loader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {