This works as expected:
In index.html
{{#ionItem path="lists" iconLeft=true iconRight=true}}
In router.js:
this.route('lists');
I’d like to pass a parameter with a categoryName to my template file. After much googling, I’m trying this:
In index.html:
{{#ionItem path="lists/categoryName" iconLeft=true iconRight=true}}
In router.js:
this.route('lists', {path: '/lists/category'});
This results in a console error:
debug.js:41 Exception in template helper: TypeError: Cannot read property ‘path’ of undefined
How can I correct this?
Thanks very much in advance to all for any info.