這裏是這裏locted一個plunker:角1.5組件未通過模態數據
https://plnkr.co/edit/V8lGOv44a95weFKipDYF?p=preview
app.component('exampleComponentTest', {
bindings: {
title: '='
},
template: '<h2>Title: {{exampleComponentTest.title}}</h2>',
controller: function() {
}
});
我創建了一個自定義組件期待它接受來自標籤的title屬性,但它不工作,我預期。我如何才能正常工作?