Git Product home page Git Product logo

angular-social's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

angular-social's Issues

tumblr sharing

I have the need to share with tumblr ? any plan to support for tumblr ?

Facebook counter isn't working

I'm not sure why, but $http.jsonp in 00-directive.js isn't working for the Facebook URL set in https://github.com/esvit/angular-social/blob/master/src/scripts/02-facebook.js#L6. For all others (or so it seems), it works fine. I even tried to change that URL to something else, but anything from Facebook doesn't work. Looking into the Network tab, we're not even trying to hit their servers. If I put something random like www.blahblah.com, it works (i.e. we call the server).

I'm using the example in the code to test.

@esvit Have you seen this? Any ideas?

E-Mail Sharing

Hi. It would be nice to have the possibility to share via E-Mail. I made a directive for it, which I could "merge" into your module if you want.

Regards,
Volker

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?

Bump bower version

Please bump bower version. It is still the old one and bower install doesn't pull the latest commits as of 4 days ago.

wish: only make API calls for counts if they are requested

Thanks for Angular Social.

We are using the Facebook and Twitter buttons, but without counts. However, our logs show that a call is still being made to get the tweet count.

For this case, it would be a small performance improvement to skip these calls, since the data is not actually used.

errors with an unknown proxy.php?

Adding this library causes the following errors in the console...

http://localhost:3000/proxy.php?url=http%3A%2F%2Flocalhost%3A3000%2Fproduct%2F10&type=google-plus&callback=angular.callbacks._1". 

how can i fix it?

Create tags for the versions so bower works

As there are no tags, if I want add "angular-social": "0.1.0" in my bower.json, I get:

$ bower install                                                                                                                                                                                                                                          
bower angular-social#0.1.0  not-cached git://github.com/esvit/angular-social.git#0.1.0
bower angular-social#0.1.0     resolve git://github.com/esvit/angular-social.git#0.1.0
bower angular-social#0.1.0     ENORESTARGET No tag found that was able to satisfy 0.1.0

Additional error details:
No versions found in git://github.com/esvit/angular-social.git

Please, create some tags so we (the users) could get specific versions of your library from bower.

Twitter counting is using un-secured internal API

I noticed that the URL used counting tweets does not use 'https://', which can be a problem on secure pages.

Further, as noted here, that insecured URL is intended only for internal use by Twitter, and they do not appear to offer version of it that uses https://

https://dev.twitter.com/discussions/5653

Instead, using their Streaming API for counting tweets is recommended. There are options to use 'https://' to access the streaming API.

Generic url value

Hi there,

I have a question regarding data-url attribute. Is it possible to pass its value from controller (and how)? I would like to include this on every article, so I wanted to pass something like:

 data-url="'article.url'"

I tried also with curly brackets, but with no luck:

 data-url="'{{article.url}}'"

Is this possible at all?
Thanks!

Bower file - old version of angular as dependency

After installing the latest version of the package, the .bower.json file looks like this:

{
"name": "angular-social",
"version": "0.1.1",
"main": "angular-social.js",
"ignore": [],
"dependencies": {
"angular": "~1.0.6"
},
"homepage": "https://github.com/esvit/angular-social",
"_release": "0.1.1",
"_resolution": {
"type": "version",
"tag": "v0.1.1",
"commit": "dc637f476760b01db64fa4ae349f008b40ef82b7"
},
"_source": "git://github.com/esvit/angular-social.git",
"_target": "*",
"_originalSource": "angular-social"
}

It has a dependency on a older version of angularjs.

twitter #hashtags

Hi,

how can i add hashtags to twitter url? is it have any attribute like "data-hashtags"?

have a nice day,
m.

is it possible for the data elements support angular values

Thanks for your work in integrating social with angular. Sweet idea :-)

I've social text details that change based upon a when an item is selected from a list:

<ul ng-social-buttons data-url="'http://somedomain.com/path'"
   data-title="'{{current_title}}'"
   data-description="'{{current_description}}'">
     <li class="ng-social-facebook">Facebook</li>
     <li class="ng-social-twitter">Twitter</li>
</ul>

The challenge is the literal values {{current_title}} are getting pushed to facebook, twitter, etc instead of $scope.current_title value of the controller.

Thoughts?

proxy.php

Why does the Google+ social share button want to load proxy.php? Why not load the button straight from Google?

Description, Title and URL from Ajax Requests

There's a problem with the actual implementation of each embedded directive (twitter, facebook, etc). The actual implementation doesn't allow me to set values coming from an ajax request into url, description and title attributes. To clarify the problem, assume I have this HTML fragment:

<ul ng-social-buttons
  data-description="description"
  data-title="title"
  data-url="url"
  data-image="imageUrl">
  <li>Share:</li>
  <li class="ng-social-twitter" data-title="twitterText" data-url="twitterUrl">Twitter</li>

Now, consider the code below is somewhere inside the controller for the HTML fragment provided above:

Service.load(someId, function(data) {
    $scope.twitterTitle = data.title;
    $scope.twitterDescription = data.description;
    $scope.twitterUrl = data.url; 
});

In that case, Twitter directive (for example) will rely on the values coming from the parent directive instead of using the values from this ajax call. Taking a look at the code, I figured out what the problem is. For example, somewhere in 02-facebook.js and inside the link function, we have:

 options.urlOptions = {
      url: $parse(attrs.url)(scope)
 };

 scope.options = options;
 scope.ctrl = ctrl;
 ctrl.init(scope, element, options);

But when the link function is called, my ajax call is still being processed and these values aren't available yet. To overcome this problem, you should use the scope two way binding feature for each attribute and use scope.watchGroup to wait until the values are set in these variables.

I'm gonna create a pull request with this implementation and send it to you soon.

Separate *.less files by social network

This would be useful for many users of the directive, as we usually don't want to add every social network which angular-social supports. The way the *.js are organized already allow me to do that (I can get just twitter and facebook, for example), but not the *.less.

As the compiled CSS isn't small (22 KB), it's quite important IMHO.

What do you think?

Google Plus counter

Hi,

I have a problem retrieving google+ counter.
I see that I should replace proxy but I'm not sure with what, and I can't see that in example.
Right now, when retrieving count number, my app targets some non-existing route (localhost/proxy.php....).

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.