@Attribute

The @Attribute decorator returns the value of the specified attribute from the host.

Example

export class MyComponent {
  constructor(@Attribute('test') public test: string) { }
}

Will read value from declaration:

<my-component test="hello"></my-component>
Tutorials

attributeName#

a5bffba0-4bd4-3763-d94a-1fbc0756e7c9

attributeName?: string