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

Thanks for the directive... 1 question... #22

Open
beaubarbour opened this issue Aug 3, 2016 · 2 comments
Open

Thanks for the directive... 1 question... #22

beaubarbour opened this issue Aug 3, 2016 · 2 comments

Comments

@beaubarbour
Copy link

beaubarbour commented Aug 3, 2016

I want to copy a URL that is located with in an Angular variable i.e. in html it reads: {{focus.link}}

But Directive doesn't see the value of the variable, and it just copies the string "focus.link"

Any ideas?

@Claytonboyle
Copy link

Claytonboyle commented Aug 8, 2016

When I use this package, it gathers the text as rendered in the dom. Here are the two lines that show how I've used it:

&nbsp{{onlyString}}],&nbsp

Copy

onlyString is an angular variable, and ngclipboard captures the rendered string. The only issue is that it trims the leading and trailing spaces, and seems to add a newline to the end of the captured text, which is annoying.

@maudp
Copy link

maudp commented Aug 11, 2016

Grateful, i had the same problem, it's a good solution, than you 👍

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