Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

refactor(angular5): Declare the app.module.ngfactory.d.ts generated by ngc with AoT #361

Merged
merged 1 commit into from
Dec 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions demo/AngularApp/app/app.module.ngfactory.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* A dynamically generated module when compiled with AoT.
*/
export const AppModuleNgFactory: any;
2 changes: 1 addition & 1 deletion demo/AngularApp/app/main.aot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);