angular-social
angular-social copied to clipboard
Passing a different url to each button
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?
It isn't working for me too. Any idea about this problem?
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