projects/i-components/src/lib/components/content-template/content-template.component.ts
A ContentTemplate object wraps a template referenced as wm-content-template. It basically works as a template naming for others control to identify specific template sections to render
selector | wm-content-template |
styleUrls | ./content-template.component.scss |
templateUrl | ./content-template.component.html |
Properties |
template |
Type : TemplateRef<any>
|
Decorators :
@ContentChild('template')
|
Template definition of Component. |
import { Component, ContentChild, TemplateRef } from '@angular/core';
/**
* A ContentTemplate object wraps a template referenced as wm-content-template. It basically
* works as a template naming for others control to identify specific template sections to
* render
*
* @export
* @class ContentTemplateComponent
* @implements {OnInit}
*/
@Component({
selector: 'wm-content-template',
templateUrl: './content-template.component.html',
styleUrls: ['./content-template.component.scss'],
})
export class ContentTemplateComponent {
/**
* Template definition of Component.
*
* @type {TemplateRef<any>}
* @memberof ContentTemplateComponent
*/
@ContentChild('template')
template: TemplateRef<any>;
}
<div></div>
./content-template.component.scss