Factory method

Kmandapalli
Posted by Kmandapalli under AngularJS 1x category on | Points: 40 | Views : 1136
var mainApp = angular.module("mainApp", []);
mainApp.factory('MathService', function() {
var factory = {};
factory.multiply = function(a, b) {
return a * b
}
return factory;
});

Comments or Responses

Login to post response