我有一个要包含在页面中的角度组件。如果我在此组件中注释/删除绑定参数,一切正常...为什么?
(function () {
angular.module('app').component('detailsComponent1', {
templateUrl: '/RealSuiteApps/RealForm/-1/Details/Component1',
restrict: 'E',
bindings: {
value: "Component1"
},
controllerAs: 'cm',
controller: function () {
this.message = 'Hello from component1';
}
});
})();
如果我想使用绑定参数,我会得到一个错误:
链接到:https://docs.angularjs.org/error/ $compile/iscp?p0=detailsComponent1&p1=value&p2=Component1&p3=controller%20bindings%20definition
这是什么意思 ??
谢谢。