【发布时间】:2018-05-20 02:48:24
【问题描述】:
我正在尝试从 angular1.5 组件初始化 test.service.js,但我真的不知道该怎么做。我已经将此结构用于角度组件:
var testComponent = {
templateUrl: "app/components/test.component.html",
controllerAs: "mvm",
bindings:{
bindingInput: "=",
},
controller: function(){
var mvm = this;
}
};
angular.module('myApp').component('testComponent', testComponent);
【问题讨论】:
-
@31piy 是的 ....
标签: javascript angularjs service components