Created
January 10, 2016 12:56
-
-
Save leosilvadev/4244bbd69817746fdbec 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.controller('UsuariosController', function($scope, usuarios){ | |
$scope.usuario = {}; | |
$scope.usuarios = usuarios.listar(); | |
$scope.textoPequisa = ''; | |
$scope.adicionar = function(usuario){ | |
usuarios.adicionar(angular.copy(usuario)); | |
$scope.usuarios = usuarios.listar(); | |
}; | |
$scope.listar = function(){ | |
usuarios.listar(); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment