Update GUIDE.md

Problem on the _id of the Path and Link Examples for the lists.
This commit is contained in:
Papin Johyn 2015-04-19 21:36:36 +02:00
parent 0efcd877a7
commit d44532ae05

View file

@ -255,19 +255,19 @@ Meteor uses Iron:Router. Most are familiar with Iron:Router's [pathFor](https://
To call IR's `pathFor` you would specify your route in the `path` attribute.
```
{{#ionItem path="item.detail" _id:"" data="" query="" hash="" class=""}}...{{/ionItem}}
{{#ionItem path="item.detail" _id="" data="" query="" hash="" class=""}}...{{/ionItem}}
```
To call IR's `urlFor` you would specify your route in the `url` attribute.
```
{{#ionItem url="item.detail" _id:"" data="" query="" hash="" class=""}}...{{/ionItem}}
{{#ionItem url="item.detail" _id="" data="" query="" hash="" class=""}}...{{/ionItem}}
```
And if you want to specify a path without calling any IR helpers specify your route in the `path` or `route` attribute and make sure not to include any of these attributes `data` `query` `hash` .
```
{{#ionItem route="item.detail" _id:"" class=""}}...{{/ionItem}}
{{#ionItem route="item.detail" _id="" class=""}}...{{/ionItem}}
```
Lastly you can also pass a raw url by including the `href` attribute.