Social media sharing in AngularJS

Hi, my name is Tina! I am a Full Stack Software Developer and Tech Lead from Canada. 🙋🏻♀️
Search for a command to run...

Hi, my name is Tina! I am a Full Stack Software Developer and Tech Lead from Canada. 🙋🏻♀️
No comments yet. Be the first to comment.
Have you ever installed a package by using go install <some-package> and wondered how to uninstall it? Go is really great in that respect. Go packages are a single binary and they’re installed based on how your Go tooling is set up. Provided we have ...

Overview This is the 3rd article in a series of posts about working with Open API to create generated API clients and documentation websites. In the 1st post we went over what we can do with Open API spec files, e.g. generate API clients and documen...

Overview This article is the 2nd in a series of blog posts that discuss using Open API to help with API documentation and API client code generation. In the previous article, we went over how we can generate documentation and API clients using existi...

Overview This article starts a series of Open API-related blog posts. OpenAPI, previously known as Swagger (a name still in use today for many of its tools), is a suite of tools that generate documentation and networking clients for various programmi...

You've probably already seen the scary alert (that's possibly why you're here), but in case you haven't, it looks something like this: NewAppIJustDownloaded pasted from your clipboard Sometimes it h

I developed this directive to make social media sharing in AngularJS easy. At the time of this article, this directive supports Twitter, Facebook and LinkedIn. This is ideal for content-first sites like blogs, news, magazine or portfolio sites. This solution is simple and makes use of each of the above-mentioned social media networks’ ability to share content by providing URL parameters. To add a share link to your Angular application, simply create an element with the required attributes:
<div
share-square="true"
share-links="Facebook, Twitter, LinkedIn, Google-Plus"
share-title="Article Title">
</div>
This solution is unobtrusive and does not require your application to be registered in your social media developer accounts.
It can be easily downloaded and installed using Bower. It requires Font Awesome to display the icons and you can choose between the two currently available icon styles (with square or without). The share link below is an example of this directive in action. For more information, check out the repository and a demo on Github.