how do I create a component in Angular which changes the behaviour based on the given attribute?
Example:
<my-comp [data]="data"></my-comp>
vs
<my-comp [data]="data" sortable> </my-comp>
<my-comp> is just a Component witch shows the data as a html list. Is it possible to check in the MyComponent if the attribute sortable is set without using @Input()?
Do I have to define a Directive or can I somehow access the attribute?