<h1>Add user</h1> <form #f="ngForm" novalidate (ngSubmit)="onSave(f.value)"> <input type="text" name="name" [(ngModel)]="user.name" #name="ngModel" required="required" minlength="5"> <span [hidden]="name.valid || (name.pristine && !f.submitted)" class="text-danger"> Name is required (minimum 5 characters). </span> <select name="application_name" [(ngModel)]="ProductName" (ngModelChange)="onSelectApplication()" required #ProductName="ngModel"> <option value="" infor-translate="select_application_name"></option> <option *ngFor="let item of ProductName" [ngValue]="item">{{item.ProductName}}</option> </select> <button type="submit" class="btn btn-default">Submit</button> </form>
<span class="errorMessage" [hidden]="ProductName.selectedValue=='select_application_name' || (ProductName.pristine && !addAvailableApis.submitted)"> Required </span>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)