=
- two-way data binding&
- one-way data binding@
- for binding of stringsbindToController
if using controllerAs
syntax in the directiveData binding example
angular
.module('myApp')
.directive('myDirective', myDirective);
function myDirective() {
return {
templateUrl: 'myTemplate.html',
restrict: 'E',
scope: {
example: '='
}
};
}
<my-directive example="vm.exampleValue"></my-directive>
$valid
- Boolean - Tells if an item is currently valid$invalid
- Boolean - Opposite of $valid
$pristine
- Boolean - True if the item (form or input) has not been used yet$dirty
- Boolean - True if the item has been usedEasy Foundation classes useful for error rendering
We added callouts to display Firebase server errors and “email required” errors on the login form. Add additional callouts for validating email format and password presence.
Mutant Office Hours: Source