I would like to declare an attribute and assign a value to it in the component's HTML tag, like this:
<my-component my-attr="foo"></my-component>
Then I'd like to get the value of this attribute (my-attr
) from inside my controller.
Is this possible using AngularJS 1.6 and TypeScript, and if yes how?