HTML:
<form-control model="'myStringModel'"></form-control>
组件:
var formControl = function () {
return {
templateUrl: 'Components/FormControl/views/FromControl-tml.html',
controller: function () {
console.log(this.model)
},
bindings: {
model: '=',
}
};
}
输出应该是'myStringModel',但我得到'undefined'。