Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / Jayant Singh Rathore

"To inject test data into your Ember.js application using fixtures, follow these steps: 1) Define a fixtures file (e.g., fixtures/store.js). 2) Inside the fixtures file, define your test data as an object with keys representing the model names and values being the corresponding models' attributes. 3) Call Ember.run in your application's initializer to load the fixtures (usually done during application initialization or when testing)."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are observers in ember.js?

2