How to work with AngularJS without the API being ready?

0

I want to make the front end of my application with AngularJS but my RESTFul API is not yet ready to be consumed, have some help returns in JSON?

    
asked by anonymous 17.09.2015 / 18:48

2 answers

2

You have this: link

Example in github: link

    
17.09.2015 / 18:59
1

I do not know any API, however you can do it as follows.

$scope.jsonTeste = { "prop": true, "prop2": false } // Add your json here.

then you change to your request.

$http(url).then(function(retorno) { $scope.jsonTeste = retorno.data  } );

As soon as one thing does not depend on the other, it can be completely developed.

    
17.09.2015 / 18:54