This is going to be a home for a common set of AngularJS directives that can be reused throught projects.
Prefix all directives with o
Example:
<div o-validation-message-for="firstName"></div>
This will install all node_modules
and bower_components
needed
npm install
This will run the concatenation build script and inline all html templates into the template cache.
gulp
Install-Package Envoc.Directives
https://github.com/Envoc/envoc.directives/blob/master/src/datatables/discovery.md
<div o-validate-with errors="ctrl1.errors">
<div o-validation-summary></div>
<div o-validation-message-for="firstName"></div>
<div o-validation-message-for="lastName"></div>
</div>
where ctrl1.errors:
[
{ propertyName: '', type: 'length', errorMessage: 'This is global' },
{ propertyName: 'firstName', type: 'required', errorMessage: 'First Name is required' },
{
propertyName: 'lastName',
type: 'length',
errorMessage: 'Last Name must be between 2 and 256 characters'
}
];