Hello,
I am trying to implement Twitter & Google+ with AngularJS.
I am using javascript code to do it.
*For Twitter:*
<script>!function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0], p =
/^http:/.test(d.location) ? 'http' : 'https';
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = p + '://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js, fjs);
}
}(document, 'script', 'twitter-wjs');</script>
<a href="https://twitter.com/share" class="twitter-share-button"
data-url="{{From scope}}" data-text="{{From scope}}" data-size="large"
data-related="someData" data-count="none"></a>
*For Google+:*
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type =
'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po, s);
})();
</script>
<div class="g-plus" data-action="share" data-annotation="none"
data-height="25" data-width="50"></div>
How to share messages with dynamic values ?
Thanks,
Avi
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.