I\'m confused a little.
See this simple directive:
@Directive({
selector: \'[myDirective]\'
})
export class MyDirective {
priva
The brackets tell Angular to evaluate the template expression. If you omit the brackets, Angular treats the string as a constant and initializes the target property with that string. It does not evaluate the string!
Don't make the following mistake:
check: https://angular.io/docs/ts/latest/guide/template-syntax.html#!#property-binding