A. そのコンポーネントのコンストラクター B. そのコンポーネントのテンプレート内のコンポーネントのプロパティを参照したいと思います。これに関するAPIは少しシフトしているようですが、次のように動作することを期待しています:
<my-component [greeting]="hello"></my-component>
// my component.es6.js
@Component({
selector: 'my-component',
properties: {
'greeting': 'greeting'
}
})
@View({
template: '{{greeting}} world!'
})
class App {
constructor() {
console.log(this.properties) // just a guess
}
}
私は何を間違っていますか?