+ 1 + getVal()}} • the template expressions are evaluated and then converted to string • Visible side effects are not allowed (assignments, new(), ‘;’, ++) • Global namespace is not allowed (Math, window.)
the text from the input }) .filter(function (text) { return text.length > 2; // Only if the text is longer than 2 characters }) .debounce(750 /* Pause for 750ms */ ) .distinctUntilChanged(); // Only if the value has changed
(ngSubmit)=”action()” • we need a form alias to check #userForm="ngForm" • ngModel • we need ngControl="password" • #password="ngForm" • *ngIf="password.control?.dirty && password.control?.hasError('required')"