Created
January 10, 2016 12:57
-
-
Save leosilvadev/f147eede9e48989cd9bb to your computer and use it in GitHub Desktop.
This file contains 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 modulo = angular.module('usuarios'); | |
modulo.factory('usuarios', function(){ | |
var usuarios = []; | |
var adicionar = function(usuario){ | |
usuarios.push(usuario); | |
}; | |
var listar = function(){ | |
return usuarios; | |
}; | |
return { | |
adicionar: adicionar, | |
listar: listar | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment