vbc vbc - 1 year ago 110
AngularJS Question

Ionic framework Json data retrieving

Hai I am new to ionic framework and now I get frustrated to implemented get data from the dummy Json . If anybody know about that help me.

Answer Source

Its really simple. If content.js is your external file and located on the root. You get it as follows. I have embedded working plunker, play with it.

$http.get('content.js').success(function(response) {
     //whereever you want to put the data

Here is the working plunker: http://plnkr.co/edit/hC3iY8HUG23N7DjIS2hP?p=preview

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download