Factory method

Kmandapalli
Posted by Kmandapalli under AngularJS category on | Points: 40 | Views : 243
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