Skip to content

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.

License

Notifications You must be signed in to change notification settings

AanZee/directives

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aan Zee - Directives

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.

Bower version

Easy installation

Run $ bower install aanzee-directives

Usage

  1. Include the dist/js/directives.min.js in your HTML page after you have declared Angular and copy dist/views to a location you prefer.
  2. Alter some additional configuration as shown in the example html files.
  3. Now you are ready to use our directives in your project.

Configuration

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/'});

Directives

Input Stepper

Default module to select a number with an increase and decrease button. See the usage at examples/input-stepper.html

Dependencies

None

Date Picker

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/

Versioning

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.

Author

Aan Zee Interactive

  • Raoul de Best
  • Sven Buijsrogge

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published