Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body ng-controller="cadastroAlunosCtrl">
- <div class="jumbotron">
- <h3>{{app}}</h3>
- <ui-alert title="Ops, a problem here!"></ui-alert>
- <div class="ui-alert-title">
- </div>
- <div class="ui-alert-message">
- {{error}}
- </div>
- var carregarContatos = function(){
- contatosAPI.getContatos().then(function (response) {
- $scope.contatos = response.data;
- }).catch(function(data, status){
- $scope.message = "We can't get the data" + data;
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement