ng-tools

collection of useful services/factories/directives/filters I like using in my projects


Keywords
debounce, angular, in scope, mark links, markdown, loader, include, urlize, fallback image
License
MIT
Install
bower install ng-tools

Documentation

ng-tools

collection of useful services/factories/directives/filters I like using in any Angular project, so far contains:

##Directives:

  • include-in-scope
  • fallback-url for getting a custom image for wrong image src urls
  • markdown
  • mark-current-url directive(and asociated mark-current-if-any-child-is directive)
  • loader directive with loaderSvc for easy hiding spinners and other loader elements
  • promise-class

##Factories

  • urlize factory for easy synchronization between scope object and url search params
  • debounce factory
  • set and stored set factories

##Filters

  • trustHtml filter
  • trustUrl filter
  • localizeNumber filter which uses number.toLocaleString to render a number in local i18n format

Customization and building Built with Grunt

Build process is done with grunt, so if you want to modify sources, just run:

npm install

then when you want to get concatenated, minified sources, use command:

grunt

for tests, run

grunt karma