The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
8 views

ngc looking in wrong directory

I have installed the @angular/compiler-cli globally and added the following tsconfig-aot.json to my client directory: { "compilerOptions": { "target": "es5", "module": "es2015", "...
2
votes
2answers
424 views

how to use ahead-of-time compiler with angular cli webpack

is there a way to use AOT with angular cli? I've installed the modules (@angular/compiler @angular/compiler-cli) and when I type ngc -p scr it creates the ngFactory.ts files and compiles it to dist/...
0
votes
1answer
40 views

Does Angular 2 Ahead-of-Time compiler support SASS stylesheets?

I'd like to make another attempt at using Angular 2 Ahead-of-Time compilation. This will require a significant refactoring on my part because my current setup uses a custom build process that will ...
0
votes
0answers
35 views

Ionic 2: ngc compiling fails (Metadata emit requires the sourceFiles are passed to WriteFileCallback)

I'm trying to compile my ionic 2 rc app using ngc with typescript@next: [ben@ben app2] $ ./node_modules/.bin/ngc -p tsconfig.json Error: Metadata emit requires the sourceFiles are passed to ...
0
votes
0answers
10 views

Ng-class not working in dynamic $compiled html in directive

I want to compile a template inside my directive. My compilation code looks like this: app.directive("test", ['web', function (web) { return { restrict: 'A', link: function (scope, ...
0
votes
1answer
43 views

angular directive compiler fired ng-click twice

I am using accordion directive in my template, and inside accordion i am adding attr ng-click on a element. When I click on that element it fires twice. Fiddle : http://jsfiddle.net/Lvc0u55v/10071/ ...
3
votes
0answers
97 views

Angular 2: How to implement lazy routing with Ahead of Time Compilation?

I have successfully created .ngfactory files using ngc compiler and have also updated my main.ts with "platformBrowser().bootstrapModuleFactory(AppModuleNgFactory)". app.routes.ts const appRoutes: ...
2
votes
0answers
143 views

Angular 2 compiler-cli and less or sass

I am using webpack with angular 2 and got sass working with it. My next step is to get AOT working. I am now stuck because ngc fails when it gets to my scss files as it can't find the imports. ...
0
votes
0answers
76 views

@angular/compile-cli do not producess *.ngfactory.js file

@angular/compile-cli done successful, but there is no file *.ngfactory.js in working directory. I type ngc -p <path-to-tsconfig.json>, other files generates well, but ngfactory is absent. Why? ...
0
votes
0answers
307 views

angular-compiler-cli not working?

I'm trying to use the Angular Template Compiler just to investigate it, I know it's in early stages but the documentation for RC5 is mentioning it already. I created a small "hello, world" project ...