Questions tagged [ng-component-outlet]
18 questions
0
votes
1 answer
How to assign value of *ngFor loop variable to angular dynamic component's @Input property?
Here is complete rewrite of the question because it seems it was poorly written.
I am trying to use this package:
https://www.npmjs.com/package/ng-dynamic-component
for dynamic component @Input() with ngFor loop variable.
The package's author has…

char m
- 7,840
- 14
- 68
- 117
0
votes
1 answer
How do i Unit test an angular component created with ngComponentOutlet?
I have a component created with ngComponentOutlet
and the component itself
import { Component, OnInit, Injectable, EventEmitter } from…

FraPetIm
- 65
- 2
- 11
0
votes
1 answer
How to provide Inputs and Output for dynamic components
I ran into ng-dynamic-component package, while struggling with Angular's ngComponentOutlet unacheiveable @Inputs and @Outputs interactions.
In my application, I'd like to dynamically instantiate different types of tab components in *ngFor.
Reading…

Kesem David
- 2,135
- 3
- 27
- 46