I am implementing AOT in my angular-2 application, which load dynamic pages initially from landing page.
When it load, it throw error like below.
No ResourceLoader implementation has been provided
Component declaration look like below:
@Component({
selector: 'page1',
templateUrl: 'Page1.html',
})
Main.ts
import { platformBrowser } from '@angular/platform-browser';
import { AppModuleNgFactory } from '../aot/configs/Application.ngfactory';
import { COMPILER_PROVIDERS } from '@angular/compiler';
platformBrowser(COMPILER_PROVIDERS).bootstrapModuleFactory(AppModuleNgFactory);
Note: If i use template instead templateUrl it works, but for long HTML Template is not good
I have also tried: "Can't read the url" error for angular2 dynamic components with templateUrl
any one has idea how to resolve this issue.