Questions tagged [ng-container]

79 questions
2
votes
2 answers

Injecting component to ng-container? (load ng-template from file)

I'm trying to build a simple tabs-menu in my Angular app. parant.component.html:
Gil Epshtain
  • 8,670
  • 7
  • 63
  • 89
2
votes
1 answer

Angular 6 Form Array cannot be accessed inside an ng-container

I have an ng-container that describes all of my possible form field templates, essentially on a large switch statement depending on the field's metadata:
Joe H
  • 107
  • 1
  • 7
2
votes
1 answer

Angular 7 Mapping object with array of object to mat table

I am trying to map one of my object to mat-table. Input object from Web API is as follows: [ { "inventoryId": 1004, "inventoryName": "Red Shirt Material", "dateReport": [ { "date":…
Pradeep K
  • 307
  • 6
  • 17
2
votes
1 answer

no render with mat-error, ng-template and *ngTemplateOutlet

This code is working fine and properly (without ngTemplateOutlet):
Szorba
  • 85
  • 6
2
votes
2 answers

Angular 6: get reference to Components created with *ngFor inside ng-container tag

I'using ng-container to iterate on a list and create components
raffaeleambrosio
  • 235
  • 2
  • 11
2
votes
0 answers

Is it possible to subscribe to changes through an NgTemplateOutlet?

I have an Angular component (ParentComponent) that accepts and displays a custom NgTemplate. I want ParentComponent to receive events from a component in the NgTemplate through an EventEmitter. Something like this: ParentComponent.html