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
2
votes
1 answer

Chunk does not contains lazy-loaded components

I just finished splitting my Angular 9 app into 2 modules to optimize the loading time. Unfortunately the chunk produced by the compilation is very small and seems to contains only the code of my feature module and router. All the components…
grunk
  • 14,718
  • 15
  • 67
  • 108
2
votes
1 answer

Loading angular ivy library component via import with tha module path as a string

I am using Ivy latest rc candidate so far. Use Case: I want to provide several modules which are compiled separately loadable via the import statement on runtime without using the loadchildren from the router module. Context: I have created a…
2
votes
0 answers

Compile(Ivy) and build (Bazel) with Angular

I'm new into Angular and I'm trying to understand what's coming with Angular 9. I know Ivy is the new view engine and compiles our code and Bazel builds it, but does Bazel compiles it too? or Ivy does it, then Bazel does the build? I'm confused on…
halynn4
  • 29
  • 1
2
votes
1 answer

Lazy-loading with Angular Ivy : No provider for InjectionToken ng-select-selection-model

Bug Description I'm using angular's new IVY compiler, along with the new lazy-loading functionality (lazy-loading with ivy tutorial here: https://www.debugbear.com/blog/lazy-loading-angular-components-without-a-router) When lazy-loading a module and…
Fil
  • 69
  • 6
2
votes
0 answers

How to dynamic import components and render them using ivy

Im trying to import a component or module or application, pretty much doesnt matter which, into a 2nd app, and render that component using Angular 8 ivy new function public someFunction(): void { import('someComponent).then(({ lalala }) => { …
DaumannM
  • 106
  • 7
2
votes
2 answers

Compile error when building with Angular Ivy

I have an angular 8 project and when I enable angular Ivy then it is getting failed during compile time. When I check for the solutions provided by others and updated to angular 8.1.0( from 8.0.3) but the issue still persists and keep giving me the…
Praveen Kumar
  • 190
  • 5
  • 15
2
votes
2 answers

Angular 8 lazy routes resolve with and without prefix and redirect before parent

I am trying to work with the router and lazy loading in angular 8. I have previously successfully used it in Angular 7. I have a few basic routes which are as follows: /home /auth /auth/login /auth/signUp I would like /auth to redirect to…
Busti
  • 5,492
  • 2
  • 21
  • 34
1
vote
2 answers

angular 15 truely dynamic components with compileModuleAndAllComponentsAsync

I am in the middle of migrating of project from angular 8 to 15 The key feature of app is dynamic product cards, template for them is arbitrary html which is loaded from server and not known during development (not even saying that total list…
k31
  • 57
  • 4
1
vote
1 answer

Angular components loaded from different module not rendered in dynamic compiled component

Our SaaS need to offer different home pages for different customers. Our approach is to have the different templates in the database. We also have components defined in a different module that must be used in the different home pages. So we're…
Innstinct
  • 11
  • 3
1
vote
1 answer

Error calling (click) function inside ngIf else template

I have an *ngIf with an else template defined as such:
user3591367
  • 959
  • 1
  • 5
  • 6
1
vote
1 answer

How to destroy services that are programmatically injected into dynamically created angular components?

In Angular, it is possible to load and view components dynamically at runtime by calling viewContainerRef.createComponent(factory) on an instance of ViewContainerRef, passing a factory that can create an instance of the component. By passing an…
isnot2bad
  • 24,105
  • 2
  • 29
  • 50
1
vote
2 answers

How to compile Angular 12 library with recursive components?

Tldr: how to compile angular library with recursive components? Prehistory: I have an application which purpose is to display complex forms. First you have to create an array of fields, then you pass the array to app-form component and it creates…
lucifer63
  • 784
  • 9
  • 32
1
vote
2 answers

Angular NG3003 error when child component references parent component

Consider the following situation: A parent component uses a child component in its template, and the child component has a reference to the parent component injected into it. parent.component.html: child.component.ts: import {…
1
vote
2 answers

Does angular include the commented code/components also while building?

I have a few components that I do not currently, but may require it later. I know that the number of components increase the size of the build which makes the page to load slower. Does angular include the components whose imports are commented in…
Arokia Lijas
  • 441
  • 4
  • 14
1
vote
0 answers

Angular 9 (without Ivy) how to get _view from ViewContainerRef?

I've a project (that was working a few days ago) that uses angular 9 without Ivy tsconfig { "angularCompilerOptions": { "enableIvy": false, }, "compilerOptions": { "downlevelIteration": true, "target": "es2015", …
JMarques
  • 3,044
  • 4
  • 34
  • 55