Hello
I am kinda newbie and I am looking to import data I have in my own made json saved at public folder. Can anyone help me how can Import data.
here is what my data looks like:
{
“page1”:[
{
“url”:“images/pic1.jpg”,
“paragraph”:“Some text over picture”
}
]
}
Hi @Sameed_Baqai,
the best place to load data is from a Route’s model hook. For more information about routes please have a look at the guides .
For a start I would recommend that you start without Ember-Data, especially if your App has read-only data only. Just load the data via Ember.$.getJSON (see beneath) and try to render the data inside a template or use the Ember inspector to see what’s happening.