0 votes
in JavaScript by

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

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

Related questions

0 votes
asked Oct 10, 2023 in JavaScript by DavidAnderson
0 votes
asked Oct 2, 2023 in Python Imaging Library by sharadyadav1986
...