A whole bunch of Angular directives made by Aan Zee. The main purpose of this repository is to create standard directives which we use in numerous projects.
Run $ bower install aanzee-directives
- Include the
dist/js/directives.min.js
in your HTML page after you have declared Angular and copydist/views
to a location you prefer. - Alter some additional configuration as shown in the example html files.
- Now you are ready to use our directives in your project.
In some projects you just want all directives to be included, this can be done by the following piece of code
angular.module('myApp', ['aanZeeDirectives']);
// If you need to change some options like for example you want the views in a different location, you'll need to override the angular value 'options'
angular.module('myApp', ['aanZeeDirectives']).value('options', {viewPath: '../dist/views/aanzee/directives/'});
You could also choose to just use one directive, all directives are modules as well. So if you want to only use the input-stepper directive you need to code it like this:
// With this setup the value 'options' is MANDATORY! Because the default options are only set in the main module 'AanZeeDirectives'
angular.module('myApp', ['aanZeeDirectives.inputStepper']).value('options', {viewPath: '../dist/views/aanzee/directives/'});
Default module to select a number with an increase and decrease button. See the usage at examples/input-stepper.html
Dependencies
None
Default module to select a date with a lot of options, see them all at the examples/date-picker.html
.
Dependencies
Package | Url |
---|---|
Pikaday | https://github.com/dbushell/Pikaday |
moment.js | http://momentjs.com/ |
VX.0.0 Is a major release
V0.X.0 Is a structure release, in these releases the structure of a directive could be changed
V0.0.X Is a minor release, nothing changes in te structure only bug fixes and minor changes with no impact for other versions.
Aan Zee Interactive
- Raoul de Best
- Sven Buijsrogge