I'm struggling with initializing a test.service.js
file from an angular1.5 component and I'm not entirely sure how to accomplish it. Below is the structure I have used for my angular components:
var testComponent = {
templateUrl: "app/components/test.component.html",
controllerAs: "mvm",
bindings:{
bindingInput: "=",
},
controller: function(){
var mvm = this;
}
};
angular.module('myApp').component('testComponent', testComponent);