-
Notifications
You must be signed in to change notification settings - Fork 0
Angular Seed Data
The things that show up on your app's main view are part of some seed data that is added to your database (including your test and admin users) every time you restart your app (by running grunt serve
in the command line). This data is defined in /server/config/seed.js.
You can add, remove, or change data in this file, and it will be written to your database, overwriting any duplicates the next time you run grunt serve
. If an object defined in seed.js is overwritten, the database will assign a new _.id property to it (we'll cover _.id properties in the next section), which may give you some issues later on in testing. To avoid this, you can turn off seeding by setting seedDB: false
in /server/config/environment/development.js.
Learn to code and help nonprofits. Join our open source community in 15 seconds at http://freecodecamp.com
Follow our Medium blog
Follow Quincy on Quora
Follow us on Twitter
Like us on Facebook
And be sure to click the "Star" button in the upper right of this page.
New to Free Code Camp?
JS Concepts
JS Language Reference
- arguments
- Array.prototype.filter
- Array.prototype.indexOf
- Array.prototype.map
- Array.prototype.pop
- Array.prototype.push
- Array.prototype.shift
- Array.prototype.slice
- Array.prototype.some
- Array.prototype.toString
- Boolean
- for loop
- for..in loop
- for..of loop
- String.prototype.split
- String.prototype.toLowerCase
- String.prototype.toUpperCase
- undefined
Other Links