@rzky wrote:
I got this crazy error about
link-to
not being passed it’s required params. It’s crazy because it’s a static top level route that don’t have any segments.Assertion Failed: You attempted to define a `{{link-to "education"}}` but did not pass the parameters required for generating its dynamic segments. config is not defined
Here’s the route definition.
this.route('education');
The culprit is this block of code. I’m passing a route name dynamically to the
link-to
helper in a loop.{{#each categories as |category index|}} <div> // one of these should translate to /education {{#link-to category.route}}<img src="{{asset-map category.thumb}}" alt="{{category.name}}">{{/link-to}} </div> <div> <p>{{#link-to category.route}}{{category.name}}{{/link-to}}</p> </div> {{/each}}
Any ideas?
Posts: 2
Participants: 1