This example shows how to use @Input() annotation on child components. My question is how do you use it on root component? For example if you modify code on the link above:
@Component({
selector: 'app',
template: `
<bank-account bank-name="RBC" account-id="4747"></bank-account>
`,
directives: [BankAccount]
})
class App {
@Input() something: string;
}
bootstrap(App);
And in html:
<app something="Test"></app>
The above example never updates something property on App component.