refactor(ivy): add type and hooks to directive def (#21650)
PR Close #21650
This commit is contained in:

committed by
Misko Hevery

parent
97b928053d
commit
98174758ad
@ -36,6 +36,7 @@ export class TreeComponent {
|
||||
|
||||
/** @nocollapse */
|
||||
static ngComponentDef: ComponentDef<TreeComponent> = defineComponent({
|
||||
type: TreeComponent,
|
||||
tag: 'tree',
|
||||
template: function(ctx: TreeComponent, cm: boolean) {
|
||||
if (cm) {
|
||||
@ -92,6 +93,7 @@ export class TreeFunction {
|
||||
|
||||
/** @nocollapse */
|
||||
static ngComponentDef: ComponentDef<TreeFunction> = defineComponent({
|
||||
type: TreeFunction,
|
||||
tag: 'tree',
|
||||
template: function(ctx: TreeFunction, cm: boolean) {
|
||||
// bit of a hack
|
||||
|
Reference in New Issue
Block a user