How does Angular 2 differentiate if we are using [] token for setting attribute or attribute directive? They both look the same.
For example:
<div [count]="counter"></div>
<div [ngClass]="setClasses()"></div>
Does it check for directive first and if not present then interprets it as attribute assignment? I am confused.
I mean what if we have a attribute named "value" and directive named "value". How does Angular2 handle this?