angular 1.5 コンポーネントの html を介して文字列をバインドしようとしています。次のようなエラー メッセージが表示されます。
Error: [$compile:nonassign] Expression ''My Title'' in attribute 'title' used with directive 'selectList' is non-assignable!
これは、コンポーネントを呼び出している html です。
index.html
<select-list title="'My Title'"></select-list>
およびコンポーネント:
export var selectListComponent = {
bindings: {
title: "="
},
templateUrl: 'path/selectList.html',
controller: selectListController
};
およびコンポーネント html:
<div>{{$ctrl.title}}</div>