Answers

Question and Answer:

  Home  AngularJS Developer

⟩ Tell me what is service method?

Using service method, we define a service and then assign method to it. We've also injected an already available service to it.

mainApp.service('CalcService', function(MathService){

this.square = function(a) {

return MathService.multiply(a,a);

}

});

 187 views

More Questions for you: