Questions tagged [angular-compiler]
98 questions
0
votes
2 answers
How to use AsyncScheduler with a custom Action
I have a requirement for my RXJS stream to process chunks of data in 250 millisecond intervals when the page is not visible. Chrome is throttling these intervals to 1000 millisecond intervals. To get around this I have implemented a AsyncAction that…

colin-bilkins
- 291
- 1
- 3
- 9
0
votes
2 answers
Angular 7+: Rendering directives in dynamic user content (HTML) fetched from REST API in runtime
I have an app which fetches user-content like blog content, which is saved as HTML on the server.
I need to render it and it might have custom directives like
REST API RESPONSE SAMPLE:
content: "
This is…

Deepak Thomas
- 3,355
- 4
- 37
- 39
0
votes
2 answers
I am facing issue while creating prod APK for android
I have run the ionic app by "ionic serve" run successfully after that i am creating prod APK in which i am facing issue.
Command i am using is "Ionic cordova platform add android@6.3.0" platform added successfully after that i am doing "Ionic…

saif himayat
- 15
- 5
0
votes
2 answers
Does seperating NgModules decrease the build time
Let's say we have a big NgModule the SharedModule, which exports a lot of components which are needed in multiple components. By importing the SharedModule into a feature module there is often an overhead because all the shared components get…

sevic
- 879
- 11
- 36
0
votes
1 answer
Angular compiler and entry components
When we use 'ngc' to compile source with skipTemplateCodegen set to false, so that ngc generates .ngfactory.js and when there is a angular module import where the imported module has entry components results component factories generated for those…

iamrakesh
- 219
- 4
- 16
0
votes
1 answer
Angular 6, ngc, AOT, Angular Router, router.ngfactory and SystemJS
I have a simple angular 6 application I am trying to get compiled with AOT. I am NOT using the Angular CLI. I have a custom generator that scaffolds my project start and scaffolds my components, services, etc.
Everything works as expected pre-AOT.…

WannaBDeveloper
- 147
- 3
- 13
0
votes
1 answer
Angular component input static typing
I have 2 angular components.
ButtonComponent that has an input of type ButtonText
@Component({
selector: 'app-button',
template: '',
})
export class ButtonComponent {
@Input() text: ButtonText;
}
export class ButtonText {
…

FrostF0X
- 1
- 2
0
votes
1 answer
Metadata version mismatch @netbasal/content-loader
ERROR in Metadata version mismatch for module
/Users/hardik.shah/git/admin/node_modules/@netbasal/content-loader/content-loader.d.ts,
found version 4, expected 3, resolving symbol SharedModule in
…

Hardik Shah
- 4,042
- 2
- 20
- 41
0
votes
1 answer
Compile bs-popover into div element programatically
Is there any chance I could compile a bs-popover element into div that i'm creating in angularjs in code and then add it to the DOM so my popover works ?
menu.setAttribute('bs-popover',null);
So basically I'd like this bs-popover to be compiled…

kamilws
- 171
- 1
- 16
0
votes
2 answers
Angular: How to use shared modules in a Dynamic Component?
I'm creating dynamic component in Angular v6 using compileModuleAndAllComponentsAsync of angular compiler with same below code.
viewChangeMethod(view: string) {
let template = `${view} `;
const tmpCmp = Component({ template:…

DigguDg
- 19
- 1
- 10
0
votes
1 answer
_v.context.$implicit.handler is not a function
I'm working on a grid component which has actions array that will presented as buttons
when I try this I got the following…

Mustafa Magdy
- 1,230
- 5
- 28
- 44
0
votes
1 answer
Why binding in template not working?
I have a question regarding angular-tree-control usage, why {{node.label}} in below code is not binding successfully...
For example, i have a custom node template like below:
-
huan feng
- 7,307
- 2
- 32
- 56
0
votes
1 answer
Parameter passed in angular import opts ignored
Since I want to load my @angular/service-worker only in production mode, I have added the following to my webpack config:
new webpack.DefinePlugin({
'process.env': {
'NODE_ENV': JSON.stringify(isDevBuild ? 'dev' : 'prod')
…

pulsejet
- 1,101
- 13
- 27
0
votes
0 answers
After packaging my Angular 5 library using ng-packagr, the library doesn't work once is used on an Angular application
Currently I'm working with the following versions:
typescript --> 2.6.2
angular --> 5.2.1
@angular/cli --> 1.6.5
After packaging my own library with some components using ng-packagr ("ng-packagr": "^1.6.0"), I added the files created on my…
0
votes
1 answer
Compiled angular 5 files trigger an error at runtime "No value accessor for form control with name:"
I'm trying to update a package (ng-selector) from angular 4 to 5, and I can't get it to work correctly.
From what I understand, since Angular 5 is only compiling files from the application folder, to use a package from the node_modules folder, my…

Orodan
- 1,047
- 2
- 13
- 24