Skip to content

rdelhommer/ng-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ng-utils

Common services, directives, factories, etc. for an AngularJS app

Installation

NPM or Yarn

npm install @rdelhommer/ng-utils --save

or

yarn add @rdelhommer/ng-utils

Include

<script src="node_modules/@rdelhommer/ng-core/dist/ng-core.js"></script>
<script src="node_modules/@rdelhommer/ng/dist/ng.js"></script>

Inject

angular.module('myRockinApp', ['rdelhommer.ng'];

Components

Directives

lowercase

Attribute directive for text inputs transforms value to lowercase.

uppercase

Attribute directive for text inputs transforms value to uppercase.

contenteditable

Attribute directive to provide ngModel backed contenteditable div

enter-as-tab

Attribute directive for inputs that selects the next input when the enter key is pressed

Services

localNotifications

Service for tracking notification counts in local storage.

  • Increment count for notification with unique id
  • Clear notification counts when going to a particular state
  • Subscribe to count changes by notification id

TODO

  • Minification
  • Add documentation for each component

About

Common utilities for angularjs apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published