ngyn is a collection of modules and directives initially extracted from a large scale, entity-centric, configuration management application created by Configit Software.
These components typically help reduce some of the inevitable boilerplate code which creeps into larger applications.
Modules Currently include
- Resourceful Routing: Adds advanced rails style routing to AngularJS. Particularly useful in entity-centric apps.
- Resource Extensions: Hooks for adding data on the way out or parsing it on the way in.
- Select Key: Allows you to specify a way to match an ng-option element to the select's ng-model.
- Select2: A directive to perform an in-place progressive enhancement to convert a select element into a select2 one.
- Track Changes: Tracks changes to form fields in a $changed property. Like $dirty/$pristine, but resets when value matches original.
- Form Saving Extensions: Assists in validating that a form was completed or abandoned, prompting the user to confirm.
Full documentation: http://configit.github.io/ngyn
To perform a single build, which concatenates the source files into ngyn.js
and ngyn.min.js
inside the dist folder, run:
npm run build
To perform a build then run all tests:
npm test
When developing the most common task you will require is to watch all source and test files and re-run tests on any change, this is simply:
npm start
# This is an alias for:
npm run test:watch
There is also a build:watch
task which you may find useful.