Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <body ng-controller="cadastroAlunosCtrl">
  2.  
  3. <div class="jumbotron">
  4. <h3>{{app}}</h3>
  5. <ui-alert title="Ops, a problem here!"></ui-alert>
  6.  
  7. <div class="ui-alert-title">
  8. </div>
  9. <div class="ui-alert-message">
  10. {{error}}
  11. </div>
  12.  
  13. var carregarContatos = function(){
  14.  
  15. contatosAPI.getContatos().then(function (response) {
  16. $scope.contatos = response.data;
  17. }).catch(function(data, status){
  18. $scope.message = "We can't get the data" + data;
  19. });
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement