0

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.

1
  • its really simple. see the answer below. Do mark it correct if it helps you get what you are trying to achieve. Commented Jun 29, 2016 at 10:51

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.