Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.contratos = [];
- $scope.Pesquisar = function(){
- $http.post('php/GetContratosProtocolo.php', {
- 'cpf':cpf
- }).success(function(data){
- if(typeof data == 'object'){
- $scope.contratos.push(data)
- }else{
- showerror('Contrato Não Encontrado')
- }
- }).error(function(data){
- console.log(data)
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement