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

Computed properties + additional attributes #60

Closed
ctjhoa opened this issue Jul 5, 2017 · 1 comment
Closed

Computed properties + additional attributes #60

ctjhoa opened this issue Jul 5, 2017 · 1 comment

Comments

@ctjhoa
Copy link

ctjhoa commented Jul 5, 2017

Hi,

Is there a way to do computed.ability with additional attributes.
For a concrete example, how can you write something like this:

{{#if (can "remove member from project" project member=member)}}
  ...
{{/if}}

using computed.ability.

Features exist independently but I cannot find documentation where both are used at the same time.

Thanks

@Exelord
Copy link
Collaborator

Exelord commented Apr 5, 2018

Please do not use computed.ability. Instead you can build your own computed property for whatever case you need using can service :)

@Exelord Exelord closed this as completed Apr 5, 2018
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

2 participants