How to create the angular component <md-table>within and transmit <md-table>the content items (e.g. <md-header-row>, <md-header-cell>etc.)?
<md-table>
<md-header-row>
<md-header-cell>
I tried to do this with <ng-container *ngTemplateOutlet="...">or with <ng-content>and <md-table>gives errors because I cannot find these elements.
<ng-container *ngTemplateOutlet="...">
<ng-content>
Plunger Code Example
thank
You can try with ng-content:
ng-content
<myComponentWithDataTable> <md-header-row></md-header-row> </myComponentWithDataTable>
In your component:
<md-table> <ng-content></ng-content> </md-table>
Source: https://habr.com/ru/post/1685461/More articles:Установите Teiid с помощью jboss - jbossLink to Fortran library (Lapack) from C ++ - c ++Как рисовать сложную функцию ggplot2? - rHow to check if a user has granted permissions to the camera or location (android) UNITY - androidFilling under a curve using ggplot - r graphshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1685462/how-to-resolve-specified-key-was-too-long-max-key-length-is-255-bytes-in-mysql&usg=ALkJrhjmE_stckbPzsX_rSW9umewV5mwZAHow to write http proxy using netty - javaC ++ - The best viable function; matrix decay to pointer is not a transformation? - c ++Key relationship based on a key in Swift Decodable object attributes - jsonSafe way to exit endless loop into thread pool for Python3 - pythonAll Articles