in JavaScript by
Q:

Explain how you can add data using fixture into an application?

▼ Show 1 Answer

0 votes
by

In order to put sample data into an application before connecting the application to long term persistence, fixtures are used.

  • First update js/application.js to indicate that your application’s application adapter is an extension of the DS.FixtureAdapter.  Adapters are used for communicating with a source of data for your application.  Usually, this will be a web service API.
  • Next, update the file at js/models/todo.js
JavaScript
Learn More with Madanswer

Related questions

0 votes
asked May 14, 2019 in Other by Robindeniel
...