Ember cli model problem?


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


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.


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