‹label for="name">Name‹/label›
‹input type="text" class="form-control" id="name"
required
[(ngModel)]="model.name" name="name"
#name="ngModel"›
‹div [hidden]="name.valid || name.pristine"
class="alert alert-danger"›
Name is required
‹/div›