SamiMalik
SamiMalik

Reputation: 160

How to get data from rest api and show in angular js

I am getting a JSON file from an URL which contains some movie data.

http://movieapp-sitepointdemos.rhcloud.com/api/movies

I have checked in Postman it works fine and showing data also. But when I try to show data on angular using ng-repeat it does not show.

Please check why data is not displaying on it.

Here is my plunker

Upvotes: 0

Views: 1235

Answers (1)

Narek Mamikonyan
Narek Mamikonyan

Reputation: 4611

thats because in your movies object contains only {"message":"Movie Added"} object

here you can see example, ive updated , ng-repeat works as expected in another batches object , and also you can see what you get from server at the first line

Upvotes: 2

Related Questions