Last active
February 24, 2016 01:07
-
-
Save AFelipeTrujillo/2a4e733a0a370ee8715a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('app',[]); | |
app.factory('MathFactory',function(){ | |
var factory = {}; | |
factory.add = function(a,b){ | |
return a + b; | |
} | |
factory.subtraction = function(a,b){ | |
return a - b; | |
} | |
factory.multiply = function(a,b){ | |
return a * b; | |
} | |
return factory; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment