src/module/component/mat-jumbotron/content/mat-jumbotron-content.component.ts
selector | mat-jumbotron-content |
styleUrls | mat-jumbotron-content.component.scss |
templateUrl | ./mat-jumbotron-content.component.html |
Properties |
Methods |
constructor()
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
content |
content:
|
Type : TemplateRef<any>
|
Decorators : ViewChild
|
Template for page outlook content. |
import {Component, OnInit, TemplateRef, ViewChild} from '@angular/core';
@Component({
selector: 'mat-jumbotron-content',
templateUrl: './mat-jumbotron-content.component.html',
styleUrls: ['./mat-jumbotron-content.component.scss']
})
export class MatJumbotronContentComponent implements OnInit {
/** Template for page outlook content. */
@ViewChild(TemplateRef)
content: TemplateRef<any>;
constructor() {
}
ngOnInit() {
}
}
<ng-template>
<ng-content></ng-content>
</ng-template>