Created
September 29, 2021 15:46
-
-
Save benbabics/48f1cd84ef61138623397189fbe6af9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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