I noticed it's possible to property bind stuff without brackets. What is the difference?
Typescript:
import { Component, Input } from '@angular/core';
@Component( {
selector: 'my-comp',
templateUrl: `
input is {{foo}}
`
})
export class myComponent {
@Input() public foo: string;
constructor() { }
}
HTML:
Case 1
<my-comp [foo]="bar"></my-comp>
Case 2
<my-comp foo="bar"></my-comp>