Chap 4 - Forms Inputs and Services Flashcards

0
Q

Form state in angularjs

A

$Invalid
$valid
$Pristine : init state of the form
$Dirty : inverse of pristine

Booléen pour les 4 au dessus

$Error :errors in each elements of the form

Myform.myinput.$error.
Styling is possible

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

ng-model

A

Directives qui permet de faire du binding dans les form

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Built in angularjs validator

A
Required
ng-required
Ng-minlength
ng-maxlength
ng-pattern
type=email, number, date, url
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ng-form

A

Nested form. Permet de valider qu’une partie d’un formulaire.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Chckbox

A

ng-true-value

ng-false-value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ng-init

A

Initialisation valeur par défaut bouton radio ou d’un dropdown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ng-options

A

Chargement dynamique d’une liste déroulante

How well did you know this?
1
Not at all
2
3
4
5
Perfectly