Skip to content

Commit 970ad0d

Browse files
authored
Merge branch 'next' into tablecheckbox
2 parents 27d7105 + 6d63120 commit 970ad0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/table/stories/app-custom-table.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {
22
TemplateRef,
33
Component,
44
ViewChild,
5-
OnInit,
6-
Input
5+
Input,
6+
AfterViewInit
77
} from "@angular/core";
88
import { TableModel } from "../table-model.class";
99
import { TableItem } from "../table-item.class";
@@ -55,7 +55,7 @@ export class CustomHeaderItem extends TableHeaderItem {
5555
</cds-table>
5656
`
5757
})
58-
export class DynamicTableStory implements OnInit {
58+
export class DynamicTableStory implements AfterViewInit {
5959
@Input() model = new TableModel();
6060
@Input() size = "md";
6161
@Input() showSelectionColumn = true;
@@ -71,7 +71,7 @@ export class DynamicTableStory implements OnInit {
7171
@ViewChild("customTableItemTemplate")
7272
protected customTableItemTemplate: TemplateRef<any>;
7373

74-
ngOnInit() {
74+
ngAfterViewInit() {
7575
this.model.data = [
7676
[new TableItem({ data: "Name 1" }), new TableItem({ data: { name: "Lessy", link: "#" }, template: this.customTableItemTemplate })],
7777
[new TableItem({ data: "Name 3" }), new TableItem({ data: "swer" })],

0 commit comments

Comments
 (0)