I am new to emberjs, and was working on adding a route. The route works fine, but as soon as I add link-to on that route (in the .hbs file), I get a runtime error:
"Assertion Failed: You attempted to define a but did not pass the parameters required for generating its dynamic segments. You must provide param myparams to generate."
The link-to is for the same route, but the parameter would change.
I am not sure how to fix this, can anyone please help?
Since this is inside an engine, I have added:
this.route('myRoute', {path: '/myRoute/:myparams'} ); in the engine's routes.js file.
My model is returning data fine, too; a JSON object.
Aucun commentaire:
Enregistrer un commentaire