Questions tagged [angular2-compiler]
30 questions
2
votes
1 answer
Angular2 No provider for CompileMetadataResolver
So I've upgrade from RC1 to the final release of Angular2. I've done a lot of adjustments but every time I injected RuntimeCompiler on my AppComponent, this error occurs.
I have no idea what is happening here and haven't seen the answers for the…

arvstracthoughts
- 730
- 1
- 7
- 24
2
votes
0 answers
Removal of compileComponentsAsync in angular2
With the release of Angular2 RC6 they remove the compileComponentsAsync
and replaced it with compileModuleSync(basically only referencing the module) now does that mean I have to create a module for every component I wish to render at runtime? or…

jcdevbot
- 97
- 10
1
vote
1 answer
How to compile dynamic template in ng-content in angular 2
I am trying to extend/wrap a third party(Angular Material 2) directive by writing a custom component/directive.
For a button,
Instead of using above control directly at all places in my…

Karthik Bammidi
- 1,851
- 9
- 31
- 65
1
vote
1 answer
Angular 2 internalization (ng-xi18n tool) without code compilation
I create i18n files using ng-xi18n tool. When I execute "./node_modules/.bin/ng-xi18n" messages.xlf file is created. The problem is that all code is compiled. js, js.map, metadata.json files are created, I don't need them. Hoe to create messages.xlf…

Ildar
- 3,808
- 7
- 45
- 81
1
vote
0 answers
Calling Bootstrap() on two root Components of the same class in Angular2?
I have found that when bootstrap() is called it will match a class instance to a selector on the DOM and insert a shadow DOM.
Therefore, in order to try to get two root Components of the same class bootstrapped, I have specified a distinct…

Daniel Gaeta
- 23
- 1
- 3
0
votes
2 answers
how to build specific modules in angular 2+
I would like to know is there any way to build specific modules from an application which have multiple modules.
for example, I have module a,b and c in an application but for one of my client required only b and c. I don't want to compile all the…

rahul cp
- 307
- 1
- 3
- 15
0
votes
1 answer
Angular 4 - Compile [ngClass] inside jquery append
I am new to Angular 4 , Trying to dynamically append li contents using $().append() methods. Im not able to compile and use [ngClass] directive.
jQuery is considering it as string and appending to DOM. I would like to compile it dynamically execute…

prakash r
- 113
- 1
- 11
0
votes
2 answers
Angular 2 dynamic html
I have created a table in angular 2 view and i want to bind html or angular component dynamically.
{{hHeader}}

Ishaka
- 13
- 8
0
votes
1 answer
Angular 2 AOT Webpack CSS relative nested url
I'm using Material-Design-Icons in my project, and I'm importing its css inside my own css file.
This is how it is done:
app.component.css
@import "../node_modules/mdi/css/materialdesignicons.min.css";
materialdesignicons.css
@font-face {
…

Amir Tugi
- 2,386
- 3
- 16
- 18
0
votes
1 answer
Angular 2: functions/methods on click inside dynamic template (dynamic component)
Following the example below:
How can I use/create dynamic template to compile dynamic Component with Angular 2.0?
I developed my own template generator, which gets the HTML content directly from a variable.
Here it…

B. Ciervo
- 135
- 4
- 16
0
votes
1 answer
Angular2 SystemJs, Ahead of Time Compilation with Gulp
Can anyone please guide how to use Gulp for Ahead of Time compilation of a Angular2 project that uses SystemJs. I mean to automate all steps mentioned in https://angular.io/docs/ts/latest/cookbook/aot-compiler.html
i.e. generate NgFactories,…

Naveed Ahmed
- 10,048
- 12
- 46
- 85
0
votes
1 answer
Does the Angular 2 compiler (ngc) work with Typescript definition files?
Building an Ionic 2 application that targets Windows 10 UWP. Throughout my code, I access the winrt API's directly, like this
var localStorage = Windows.Storage.ApplicationData.current.localStorage;
Compiling with tsc works, but when I compile the…

Matt
- 6,264
- 10
- 54
- 82
0
votes
1 answer
compiler-cli throws error as dynamic declarations are encountered
So I got here some pretty big project which was developed with idea that at some point as Angular advances to full 2.0 version it shall have AoT compilation enabled and finally I get all API from Angular up and ready to do it, or so it seems…

zii
- 227
- 4
- 11
0
votes
1 answer
error on angular 2 offline template compilation - @angular/http has no exported member HTTP_PROVIDERS
I am currently setting HTTP_PROVIDERS at the app component level. I see the error when running the compiler via ./node_modules/.bin/ngc.
The full error when running the compiler is
Error: Error at…

Girish Nanda
- 1
- 1
- 2
0
votes
0 answers
Building Angular2 app on top of a platform
I'm looking for documentation/guides/any information about the Angular2 compiler. What I'm interested in doing is using Angular2 on top of a different framework (having the components templates translate to the platform code and not regular…

developer82
- 13,237
- 21
- 88
- 153