File

projects/i-components/src/lib/components/content-template/content-template.component.ts

Description

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

Metadata

selector wm-content-template
styleUrls ./content-template.component.scss
templateUrl ./content-template.component.html

Index

Properties

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

Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""