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

Passing a different url to each button #28

Open
MauMaGau opened this issue Apr 22, 2015 · 2 comments
Open

Passing a different url to each button #28

MauMaGau opened this issue Apr 22, 2015 · 2 comments

Comments

@MauMaGau
Copy link

Should I be able to pass a different url to each button, like this:

<ul ng-social-buttons
     data-title="'Example'"
     data-description="task.title"
     data-image="task.project.avatar"
     data-showcounts="false"
     >
    <li>Share:</li>
    <li data-url="http://example.com/facebook" class="ng-social-facebook">Facebook</li>
    <li data-url="http://example.com/google" class="ng-social-google-plus">Google+</li>
    <li data-url="http://example.com/twitter" class="ng-social-twitter">Twitter</li>
    <li data-url="http://example.com/linkedin" class="ng-social-linkedin">LinkedIn</li>
</ul>

It doesn't seem to work. Am I doing something wrong?

@marloncarvalho
Copy link

It isn't working for me too. Any idea about this problem?

@marloncarvalho
Copy link

Ok. I got it. You have to put the url inside single quotes, like this:
< li data-url="'http://example.com/facebook'" class="ng-social-facebook">Facebook

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