diff --git a/demo/AngularApp/app/app.module.ngfactory.d.ts b/demo/AngularApp/app/app.module.ngfactory.d.ts new file mode 100644 index 00000000..793157de --- /dev/null +++ b/demo/AngularApp/app/app.module.ngfactory.d.ts @@ -0,0 +1,4 @@ +/** + * A dynamically generated module when compiled with AoT. + */ +export const AppModuleNgFactory: any; \ No newline at end of file diff --git a/demo/AngularApp/app/main.aot.ts b/demo/AngularApp/app/main.aot.ts index 3abe1e5f..d5ff77a7 100644 --- a/demo/AngularApp/app/main.aot.ts +++ b/demo/AngularApp/app/main.aot.ts @@ -2,6 +2,6 @@ import { platformNativeScript } from "nativescript-angular/platform-static"; // "./app.module.ngfactory" is a dynamically generated module when compiled with AoT. -const { AppModuleNgFactory } = require("./app.module.ngfactory"); +import { AppModuleNgFactory } from "./app.module.ngfactory"; platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory);