I've a component test
test.component.ts
public getParameters() {
return 'test.parameter';
}
test.component.html
<other-comp attr.data-target-panels="{{getParameters()}}">
</other-comp>
On this other component I've this constructor:
export class OtherComponent {
constructor(@Attribute('data-target-panels') public targetPanels: string
) {
}
}
How can i build this other-comp and binding the parameters value?
I try using
<other-comp attr.data-target-panels="{{getParameters()}}">
</other-comp>
and
<other-comp [attr.data-target-panels]="{{getParameters()}}">
</other-comp>
but it doesn't work.
@Input ()?