Mar 12, 2020 in JavaScript

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

1 Answer

0 votes
Mar 12, 2020

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

+1 vote
Jul 16, 2020 in Python
  • #python
0 votes
Dec 5, 2020 in Tableau
0 votes
Nov 20, 2020 in JQuery