We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, When I use query params value as boolean it returns value as string("true" or "false") instead of(true or false).
Example: controller/box.js export default Controller.extend({ queryParams : ['canOpen'], canOpen: false });
export default Controller.extend({
queryParams : ['canOpen'],
canOpen: false
});
template/box.hbs {{#if canOpen}} This block will happen {{/if}}.
{{#if canOpen}}
This block will happen
{{/if}}
In the functionalty, I mentioned above. We are getting canOpen variable as string instead of boolean. So the condition doesn't get executed properly.
Does anyone know about this situation.
The text was updated successfully, but these errors were encountered:
@sabarivelanganesan could you please provide some reproduction in a public repo?
Sorry, something went wrong.
@sabarivelanganesan What ember.js version are you using?
This old ember.js issue seems related. Someone mentions the same behaviour. Unless we get an up-to-date reproduction, I think we can close this issue since the other issue is closed as well?
No branches or pull requests
Hi,
When I use query params value as boolean it returns value as string("true" or "false") instead of(true or false).
Example:
controller/box.js
export default Controller.extend({
queryParams : ['canOpen'],
canOpen: false
});
template/box.hbs
{{#if canOpen}}
This block will happen
{{/if}}
.In the functionalty, I mentioned above. We are getting canOpen variable as string instead of boolean. So the condition doesn't get executed properly.
Does anyone know about this situation.
The text was updated successfully, but these errors were encountered: