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
0
votes
0 answers

Angular 15 - Cannot read properties of null (reading 'bindingStartIndex') when adding a dependency in nested package.json

I have migrated my angular app from 14.0.2 -> 15.0.4. And I have the following error in my browser : I have found what is causing this error. It's when I add a dependency (thats relies on Angular) in wrapper1's package.json. project structure …
isy
  • 531
  • 1
  • 12
  • 27
0
votes
0 answers

I cannot use component inside the same library in Angular

I'm using angular 13 and I have a test library which contains 2 components: lib1 and lib2. I want to use lib2 compoment in lib1 component by doing an import of its module in lib1.module Later on, this library is used in the 'showcase-test' app to…
Ricardmc
  • 27
  • 6
0
votes
1 answer

Can I exclude features (routes, components...) in my Angular application during Build time depending on a env file?

I would like to have two versions of my Application with the same codebase. One Version should for example include the "registration" feature and the other one not. Can I configure Angular somehow that an env file determines what gets excluded…
user3241778
  • 294
  • 2
  • 4
  • 20
0
votes
1 answer

ngModel value of select element as Ivy debugElement (unit test) remains empty in properties

I am currently updating an application from angular 8 to 9. When I ran my unit test after the update, a set of test failed. Particularly the ones trying to retrieve the value of the select field with the help of the following helper function…
0
votes
0 answers

How to Access an Ancestor-Components ElementRef inside a Component/Directive

I want to access the ElementRef of an ancestor component (which is not controlled by me; means I cannot simply expose the desired object on it). So basically I could inject the Component itself and then use the functionality of the…
0
votes
1 answer

Publish Angular 12 library built with ivy to npm

I have a requirement to upgrade a library to angular 12...I have done this. Compiling this library with ivy full compilation mode succeeds but it turns out you can't publish a library compiled this way to npm??? Setting "enableIvy":false and…
Funn_Bobby
  • 647
  • 1
  • 20
  • 57
0
votes
1 answer

Angular 9 (Ivy): CSS class^ attribute selectors stops working with angular material components

I am currently updating an Angular project from v8 to v9, and I have discovered an issue with using CSS class attributes together with Angular Material components. I have also updated to Material v9. With this simplified HTML, // Example List…
jna
  • 926
  • 10
  • 18
0
votes
0 answers

textContent/innerText/innerHTML in angular binding

I'm trying to prevent content replacing for angular app in my custom component, it happening when on custom component like placed BOUNDED property textContent/innerHTML/innerText, e.g.
vinger
  • 43
  • 4
0
votes
0 answers

Unable to debug code in node modules after angular 10

I have an library project and a application project which are upgraded recently to angular 12 from angular 9. Before the upgrade when we have to temporarily change the library for debugging, we used to update the respective file in…
Krishna Thota
  • 6,646
  • 14
  • 54
  • 79
0
votes
0 answers

Problem with loading angular components dynamically when building with --prod option

I have an Angular application that I've recently upgraded from version 8 to version 11. Before the upgrade, everything worked fine. In this application, there are some components that are being loaded dynamically with the ComponentFactoryResolver…
rsangin
  • 482
  • 3
  • 9
0
votes
1 answer

Angular component with dynamic template created using ɵcompileComponent (Angular 9) is not working in production mode

I am creating a dynamic component in Angular 9. I have a
0
votes
1 answer

Angular 11 DI for dynamically compiled components

Using JitCompilerFactory and compiling components at runtime works (for example see here: https://stackoverflow.com/a/67122569/15816951) but injecting into dynamic component does not: // (1) define Component metadata const metadata = new…
0
votes
0 answers

Angular 9/10 not able to subscribe to both Params and Query Params. This was working in Angular 8 and less version

this.router.navigate(['/lp/flights/0'],{queryParams:{requestId : this.requestId}}); In app-routing.module.ts { path: 'lp/flights/:destcode', loadChildren: () => import( …
0
votes
0 answers

angular-particle library not working angular 9 (IVY :On)

I'm trying to use angular-particle library in my angular project. I have done the implementation according to the documentation, imported ParticlesModule in the module file. In HTML added
mandav
  • 51
  • 4
0
votes
1 answer

Angular ng build --watch seems to be broken in angular version 11

During development of angular libraries, I build the libraries on-the-fly using the ng build --watch. Setup is according to the official Angular docs at: https://angular.io/guide/creating-libraries I am symlinking the libraries into my…
jjmurre
  • 392
  • 4
  • 15