-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
expose isCopySupported as a directive property #179
Comments
I think so. Go ahead. |
@maxisam seems like exposing isCopySupported will not solve this case. If NgIf is applied to the same element as the directive itself, it won't have access to the template reference variable for the same. |
Though a user can still wrap it inside another element on which the directive can be applied |
@maxisam I created a structural directive to support that conditionally renders target element based on isCopySupported flag. the code looks like this
example implementation looks like this
Should we provide a directive like this as well? |
yeah, I think we can. Make a pull request and I will take care of it. thx |
created a PR #182 |
it is out in [email protected] Thx! |
Can we expose isCopySupported as a directive property so that, users can conditionally show copy button. Right now I have to get reference of isCopySupported method from the ClipboardService in each component I want to use the directive. I can create a PR if this seems legitimate.
The text was updated successfully, but these errors were encountered: