Ember cli model problem?


#1

If url is “/products” --> model should be “app/models/products.js”.It is fine …

Suppose if the url is “/products/settings” . How will I write model using ember cli


#2

In both cases your product model should be in app/models/product.js. You should a route for each url that assigns the products to the controller model. See http://emberjs.com/guides/routing/defining-your-routes/ for some good information about how to do this.


#3

Also see http://emberjs.com/guides/models/ for information about setting up models.