On Github lauterry / slides-prez-angular-form
presenté par LAU Thierry - @laut3rry
front-end developer
<input type="text" ng-model="name">
<input type="email" ng-model="user.mail">
<input ng-model="name" required ng-minlength="3" ng-maxlength="10" ng-pattern="[^a-d]" >
$setValidity(validationErrorKey, isValid)
$setValidity('email', false) // email invalide
Ensemble d'inputs
Directives
<input type="text" ng-model="address" address> <input type="url" ng-model="website" authorized>
twitter : @laut3rry
google + : gplus.to/lauthierry