I
I
Ivan Damaskin2016-09-28 18:53:54
Angular
Ivan Damaskin, 2016-09-28 18:53:54

How to get data from local file in ionicframework?

Hello.
The question is probably strange, but extracting data from the file really does not work.

$http.get("../json/taxi.json")
      .success(function (data) {
            console.log(data);
}

When I open it in the browser, the data is pulled out. When I compile on androyd, the mobile phone does not see - (
I don’t see any errors, because the data is visible in the browser. Why, then, is it not visible in the mobile phone? Maybe I write the path incorrectly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2016-09-29
@AMar4enko

You are writing the path incorrectly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question