Questions tagged [ng-container]
79 questions
-1
votes
1 answer
How to implement Primeng Reusable Table using ngTemplateOutlet
I'm trying to create reusable component which have primeng-table. This reusable component will accept input as data and col to display in table.
In user component, I'm just using prime-table component to display data by passing the data and cols as…

Chandru
- 3
- 3
-1
votes
1 answer
Testing and anchor tag click inside a ng-container embbeded in a ng-switch
I´m really new about testing in angular and I, couldn´t have found a solution for this problematic.
Im trying to do a test over a method that is called once an anchor tag is clicked.
This anchor tag is located inside a ng-container that belongs as…
-1
votes
1 answer
How to pass template to nested component in Angular
i am building autocomplete in NativeScript and Angular (this question is valid for pure Angular also).
Markup looks like this:

Vytautas Pranskunas
- 772
- 12
- 23
-1
votes
2 answers
Angular 8: how to use ngFor without html tags. I tried ng-container but it not works
After I faced lot of issues I created this following idea to make a fill in the blanks question in my angular project. The objects shown below are getting from API and I want to loop it like this below I mentioned. I am unable to use ng-container…

carte
- 77
- 1
- 11