15 Directives to Extend Your Angular.js Apps

Just a few days ago we saw a release of Angular 1.4.0 — a community driven release that covers a list of over 400 GitHub commits, adding improvements to features such as animations, and accessibility. The official press release covers most of the ground, it’s worth hanging around the official repository as well.

Angular.js is an amazing JavaScript framework, there is no question about that, but despite the popularity and increasingly growing community, a lot of developers in the community feel that Angular is just another way of wasting one’s time and productivity. Amongst the least favorable issues you will find that testing and debugging are a nightmare to work with. You can find these reports scattered across the web quite easily, here’s one of them; a deep look at why you shouldn’t opt for Angular at all.

Whatever the case, we’re not here to observe the advantages and disadvantages of this framework, what we want is a way of extending our preexisting Angular profile with additional widgets and tools to help us become better developers. Today we’re taking a look at some of the most useful and used Angular.js directives to help you extend your applications, to help you give your applications a new feel and look without writing any of the hard code yourself.

angular-lazytube

LazyTube
With this directive you can forget about having to rely on heavy iframe’s that take forever to load, the LazyTube directive for Angular.js was built to help you load videos with ease, videos that will degrade gracefully and give your visitors a seamless experience.

Angular PDF Viewer

angular-pdf-viewer
Angular can do many things (as we will see throughout this post), and amongst them is the ability to allow your visitor to view PDF files directly from the browser, although modern browsers do provide this functionality, it’s still nice to be able to see content straight from its source, rather than download it separately.

angular morris chart

angular-morris-chart
If you know of the amazing JavaScript library morris.js, then you will love this directive. It’s a direct wrapper for allowing you to utilize the benefits of morris.js into your Angular.js projects. Get your charts on!

ng-readingtime

ng-readingtime
Do you ever come across websites and blogs that share content, but also show how long on average it should take to consume/read that content? This directive is built to serve that exact purpose, in some cases it can prove to be very beneficial to know how long is it going to take to read something.

Angular-auto-validate

angular-auto-validate
An automatic validation module for AngularJS which gets rid of excess html in favor of dynamic element modification to notify the user of validation errors.

ngEmbed

ngEmoticons
An AngularJS filter/directive for converting text into emoticons, embedding videos (youtube/vimeo/mp4,ogg), audio, pdf, highlighting code syntax and embedding almost every service in an ordinary text string.

ng-lazy-image

ng-lazy-image
As with videos, images can sometimes prove to be very bandwidth consuming and on sites that serve a large amount of images, it might be a good idea to utilize the benefits of features such as lazy image loading. Works great with responsive images.

scroll-trigger

Scroll-Trigger
Any marketing website/project built on top of Angular.js should have this directive utilized, it allows you to create smart tunnels for acquiring leads through showing content only when a certain part of the website has been reached, usually indicating that the user is somewhat interested in your product.

angular-atomic-notify

angular-atomic-notify
Save yourself a ton of time by not having to build a separate library of notification bars and boxes, as this directive will give you everything you need to serve pleasant and smooth notifications to your visitors. The integration is done using Font Awesome and jQuery.

Angular Grid

angular-grid
Angular Grid is an Angular.js built directive that uses Angular where necessary, but supports native JavaScript everywhere else. A grid built using this directive that’s built only using Angular will prove to be significantly slower than one using native language. Feature rich, light weight, minimal footprint, no external dependencies. Angular Grid will make your applications run faster.

ngMeditor

ngMeditor
Have you ever seen the editor that the popular blogging site Medium uses? It’s quite a fascinating piece of work, and whilst many people don’t seem to enjoy it, having it on your own Angular application could mean that your users get access to something they’re already familiar with. That’s exactly what this Angular directive will provide to you, an easy to use replica of the Medium content editor.

Object-table

object-table
The web technology over the years has evolved immensely, and perhaps this directive is the direct example of that; no longer do we need to rely on poorly styled HTML tables, now we’ve got access to things such as Object-tables, a smart tables directive for Angular. Check it!

Ng-sweet-alert

ng-sweet-alert
The great thing about this alert directive is that you don’t have to write any additional JavaScript code to use it, it will naturally integrate using the HTML stuff that it comes equipped with. Smooth design, and by testing the example, the transitions seems smooth as well.

vButton

vButton
A very simple directive that will allow you to create pressable buttons, inside of which you can integrate loading icons that further enhances the user experience.

vModal

vModal
Have you ever clicked on something and have had a popup box with content returned? This is that vModal was built for, to serve that exact function. Easy to use, smooth and stylish.

Directives for Your Angular.js Apps

In terms of modifications, Angular.js stands out with the easily adjustable directives that can be built from scratch in just a few minutes; there is support for all modern technologies, and using directives in your apps is like using libraries for any other programming language.

On top of these directives, we have previously shared Angular.js related content that covered an easy way of building a multilingual Angular.js app, as well as a more popular post that covered a list of free books for learning the Angular.js framework. We also recommend to check out our recent feature of the best resources for learning ReactJS; a sort of a rival to Angular, but certainly worth checking out.