Angular 2 template form validators by @AngularClass
npm install @angularclass/form-validators___
npm install --save @angularclass/form-validators
ac-is-credit-card
ac-is-base-64
ac-is-email
ac-is-json
ac-is-phone
ac-is-uuid
`Example
`typescript
import {
ANGULARCLASS_FORM_VALIDATOR_DIRECTIVES
} from '@angularclass/form-validators';@Component({
selector: 'app',
directives: [
ANGULARCLASS_FORM_VALIDATOR_DIRECTIVES
],
template:
})
class App {
}
`
Another example
`typescript
import { Component } from '@angular/core';@Component({
selector: 'about',
template:
})
export class About {
localState = {
email: ''
}; onSubmit(value, form) {
if (form.valid) {
console.log('form value', value);
} else {
console.log('form invalid');
}
}
}
``enjoy — AngularClass

##AngularClass
> Learn AngularJS, Angular 2, and Modern Web Development from the best.
> Looking for corporate Angular training, want to host us, or Angular consulting? hello@angularclass.com