AngularJS Developer Question: Download Questions PDF
Tell me 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);
}
});
mainApp.service('CalcService', function(MathService){
this.square = function(a) {
return MathService.multiply(a,a);
}
});
Download AngularJS Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain which means of communication between modules of your application are easily testable? | Tell me filter filter? |