Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

matyax/ng-toolqit

Repository files navigation

ng-toolqit

Complementary directives and filters useful for the everyday AngularJS development.

Install

You can install this package using either npm or bower.

npm

npm install ng-toolqit

Add a <script> tag:

<script src="/bower_components/ng-toolqit/ng-toolqit.js"></script>

Then add ngToolqit as a dependency for your app:

angular.module('myApp', [require('ng-toolqit')]);

bower

bower install ng-toolqit

Add a <script> tag:

<script src="/bower_components/ng-toolqit/ng-toolqit.js"></script>

Then add ngToolqit as a dependency for your app:

angular.module('myApp', ['ngToolqit']);

Filters

range

<div ng-repeat="n in [] | range:10">
  {{ n }}
</div>

Directives

format

Applies a given format to an ngModel in an input.

Available rules:

  • 9: [0-9]
  • a: [A-Za-z]
  • *: [A-Za-z0-9]
<input type="text" ng-model="ssnInput" format format-rules="999-99-9999">
<input type="text" ng-model="dobInput" format format-rules="99/99/9999">

About

Complementary directives and filters useful for the everyday AngularJS development

Resources

License

Stars

Watchers

Forks

Packages

No packages published