Brian Emil Hartz

let me = enjoy ( pondering ( javascript ( reactjs ) ) )

Angular Login Directive

This directive was created to simply handle an initial login screen. It allows us to download angular js from a cdn, to have it available before the client reaches the app.

User now has angular from a cdn so app initial load is faster, theoretically...

Angular Directive Power

Using an angular directive for login helps with validating the users ability to consume the actual angular application. I'd like to eventually have some sort of check that if it didn't load, kindly let the user know that they need to use an updated browser.


I've been enjoying the usefulness of codepen, and now have begun to realize its amazing power with the ability to actually use angular efficiently and smoothly with it.

Angular Login Directive Codepen Example

See the Pen Angular Login Form Directive by Brian Emil Hartz (@hartzis) on CodePen.

Angular Login Directive Gist