Skip to content

Instantly share code, notes, and snippets.

@benbabics
Created September 29, 2021 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benbabics/48f1cd84ef61138623397189fbe6af9d to your computer and use it in GitHub Desktop.
Save benbabics/48f1cd84ef61138623397189fbe6af9d to your computer and use it in GitHub Desktop.
@Component({
selector: 'app-month-range-selector-dialog',
template: `
<ng-template #foo let-value="value" let-column="column" ngx-datatable-cell-template>
<div class="flex flex-column">
Foo: {{ value }}
</div>
</ng-template>
<ng-template #bar let-value="value" let-column="column" ngx-datatable-cell-template>
<div class="flex flex-column">
Bar: {{ value }}
</div>
</ng-template>
`,
})
export class SimplifiedComponent implements OnInit {
@ViewChild('foo', { static: true })
tmplFoo: TemplateRef<any>;
@ViewChild('bar', { static: true })
tmplBar: TemplateRef<any>;
ngOnInit() {
console.log( this.tmplFoo, this.tmplBar );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment