meteoric / meteor-ionic

Ionic components for Meteor. No Angular!
http://meteoric.github.io
MIT License
1.51k stars 219 forks source link

iontab path does not work after updating to Meteor 1.2 #318

Open haunguyen90 opened 8 years ago

haunguyen90 commented 8 years ago

After upgrading to Meteor 1.2, code like this does not work any more:

{{> ionTab title="History" path="activebets" icon="ios-checkmark"}}

e.g. the href attribute of tag is not rendered

rokanost commented 8 years ago

Got the same issue with paths, using "href" now instead

ghost commented 8 years ago

Hi! This is most likely relevant to the changes with iron router found here.

Meteor add ejson 

should do the trick :+1:

rokanost commented 8 years ago

that did not fix the issue

gerwinbrunner commented 8 years ago

I do have the same problem, are there any solutions for it?

gerwinbrunner commented 8 years ago

Anyone?

anjanjanj commented 8 years ago

This is for ionItem, but I ended up making hacky helpers like this:

getThreadDetailPath: function() {
  return Router.routes.threadDetail.path({_id: this._id});
}

Then using href in my #each

{{#each threads}}
  {{#ionItem href=getThreadDetailPath buttonRight=true avatar=false class="item-icon-right"}}
    <h2>{{title}}</h2>
    <p>{{createdAt}}</p>
    {{> ionIcon icon="ios-arrow-forward" class="positive"}}
  {{/ionItem}}
{{/each}}