AngularJS library with custom directives