Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use query-params experimental feature #351

Closed
moilopez opened this issue Mar 27, 2014 · 2 comments
Closed

Use query-params experimental feature #351

moilopez opened this issue Mar 27, 2014 · 2 comments

Comments

@moilopez
Copy link

I'm trying to use the query-params feature, in a template like this:

emblem: =link-to 'myRoute' (query-params page="2") | link

hbs: {{#link-to 'accounts' (query-params page='2')}}link{{/link-to}}

but I have an error in both cases,

Compiler said: Error: Parse error on line 2:
...#link-to 'myRoute' (query-params page='
-----------------------^
Expecting 'CLOSE', 'CLOSE_UNESCAPED', 'STRING', 'INTEGER', 'BOOLEAN', 'ID', 'DATA', got 'INVALID'

I have enabled all features, and I'm using the lastest canary version of ember

@kiwiupover
Copy link

You need to be using handlebars 1.3 or greater.

@tricknotes
Copy link
Member

I thinks @kiwiupover is right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants