Questions tagged [angular-ivy]

Ivy is the code name for Angular's next-generation compilation and rendering pipeline. Use this tag for Angular questions which are specific to only the rendering engine.

Ivy is the code name for Angular's next-generation compilation and rendering pipeline. With the version 9 release of Angular, the new compiler and runtime instructions are used by default instead of the older compiler and runtime, known as View Engine.

213 questions
1
vote
1 answer

Angular 10 - The target entry-point has missing dependencies:

Angular 10.2.2 version. I have created Angular library my-lib using this page. In my library, I have devDependency on one of the internal NPM packages my-comp.web. In my library I have imports like below import { MyWebModule } from…
Sohan Soni
  • 1,207
  • 21
  • 35
1
vote
1 answer

What's changed in Angular 9 with respect to package import scope

I'm in the process of migrating a large V8 app to V9 and I'm experiencing errors with components that use Material components. I'm getting error NG8001: 'mat-icon' is not a known element. I fixed the issue by adding an import statement for…
user223364
  • 469
  • 1
  • 4
  • 14
1
vote
2 answers

Dynamically load Angular component with dependencies

I've been looking for a clean way (without using private API) solution to a widget style dashboard. I want to dynamically load components onto it based on user role. Is there a way to import a component and dependencies that are included in…
Beckilicki
  • 63
  • 11
1
vote
1 answer

Template Check not happening/Change detector not running (Angular)

Change Detection is not running in my Angular template for some reason. I am trying to change the color of the first div based on text change in second div(textbox). Here is what the code looks like:
Enzup
  • 13
  • 3
1
vote
2 answers

Library production build failed on angular 11 with: Expected 0 arguments, but got 1

I am trying to build my lib with --prod so i can publish it. I am getting following error: Directive SelectableRow, Expected 0 arguments, but got 1. mycomponent.ts
ssapp
  • 313
  • 1
  • 5
  • 13
1
vote
0 answers

is there a way to get an Angular AST from a template (with ng-ast)?

I'd like to build an app that can read source files of an Angular application and then work with the ASTs of the template files. Here's a standalone node script that can reproduce the problem: const Path = require('path'); const fs =…
Jeff Dean
  • 53
  • 6
1
vote
1 answer

Trigger AngularComponent-constructor on startup with PreLoadingStrategy

The goal: trigger a component residing in a module, so my subscription in the ctor of the component is activated. I'm using PreloadAllModules as a preloadingStrategy. But it's not happening. I need to subscribe to some events in de constructor of my…
BHANG
  • 354
  • 1
  • 5
  • 16
1
vote
1 answer

why i got error NG6001 in angular 11 after editing the HTML template

why i got the error in angular 11 -- NG6001: The class 'AppComponent' is listed in the declarations of the NgModule 'AppModule', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an…
yehonatan yehezkel
  • 1,116
  • 18
  • 28
1
vote
0 answers

How to insert same component multiple times i,e create same component multiple instances to show on each iteration using ViewContainerRef angular

I want to know How to insert same component multiple times i,e create same component multiple instances to show on each iteration using ViewContainerRef in angular. the component is loading fine like shown in below image but when I click on 2nd row…
Ali Hussain
  • 765
  • 8
  • 27
1
vote
4 answers

How do I include an Angular component that contains other non HTML elements like mat-icon via CDK Overlay

I am attempting to implement a Speech To Text feature within my App by using a directive [appSpeechToText] which I can apply to any input/textarea field, the component basically displays a Record, Pause and Stop buttons for which I wish to use the…
Andrew HB
  • 332
  • 1
  • 3
  • 11
1
vote
1 answer

Angular update from 8.2 to 9.1 --> Angular Material error: 'mat-radio-button' is not a known element

I have just performed an Angular update and have been receiving the following error messages regarding angular material since then: Error occurs in the template of component LanguageChangeComponent.…
Codehan25
  • 2,704
  • 10
  • 47
  • 94
1
vote
0 answers

Angular-9 upgrade and postscript (ngcc)

The documentation of Angular-9 upgrade has the following: If you depend on many Angular libraries you may consider speeding up your build by invoking the ngcc (Angular Compatibility Compiler) in an npm postinstall script via small change to your…
TheMonkWhoSoldHisCode
  • 2,182
  • 3
  • 26
  • 40
1
vote
2 answers

(@syncfusion/ej2-angular-schedule) ERROR RangeError: Maximum call stack size exceeded

I was trying using schedule feature from @syncfusion/ej2-angular-schedule npm library. I followed the steps mentioned in the official site (https://ej2.syncfusion.com/angular/documentation/schedule/getting-started/). After successfully downloading…
Tushar Raj
  • 761
  • 6
  • 20
1
vote
1 answer

Angular 9 or 10 + Angular Material 10: import could not be resolved to an NgModule class

I did a new project with Angular 9 and last version of material. When I imported some Material's classes, I had this error: ERROR in node_modules/@angular/material/form-field/label.d.ts:10:22 - error NG6002: Appears in the NgModule.imports of…
Daniel
  • 49
  • 1
  • 1
  • 10
1
vote
0 answers

ng build --watch: what happens behind the scenes?

I have an Angular application where a lot of rebuilds are necessary, to avoid long build times I use a deamon like process where I execute the ng build --prod --watch command. This works fine BUT I cannot find a lot of documentation about the ng…
Cowas
  • 328
  • 2
  • 12