I have a table in which I want to display a table row, which is a component. And also I want to pass data to that component:
-
2020-11-29 09:40
you need to include tr as well in selector like below,
@Component({
selector: 'tr[my-component]',
template: `
| {{data1.prop1}} |
{{data1.prop2}} |
{{data2.prop1}} |
`
})
export class MyComponent {
@Input() data1;
@Input() data2;
}
Check this Plunker!!
|