An Ember addon to help you insert JSON data into your application at build time.
- Ember.js v3.12 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
ember install ember-build-time-data
Create a data.json
file inside the /support
folder:
{
"data": {
"id": 1,
"name": "EMERALD",
"color": "#2ecc71"
}
}
In order you get the data in your components or route you only need to import it:
import data from '../support/data';
See the Contributing guide for details.
This project is licensed under the MIT License.