Question:What is service method? 

Answer 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); 
	}
});
 

+ Report
Total Preview: 999
What is service method?
Copyright © 2024. Powered by Intellect Software Ltd