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
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 Defining Your Routes - Routing - Ember Guides for some good information about how to do this.