Skip to content

Instantly share code, notes, and snippets.

@hung-doan
Created August 25, 2018 15:58
Show Gist options
  • Save hung-doan/1bb0ae2a192fb7389d2ab8d9541d313b to your computer and use it in GitHub Desktop.
Save hung-doan/1bb0ae2a192fb7389d2ab8d9541d313b to your computer and use it in GitHub Desktop.
<script>
onSubmit():Obversable
{
return _http.post();
}
//
InputForText(){}
InputForNumber(){}
InputForDate(){}
</script>
<form [formGroup]="form" (onSubmit)="onSubmit()" returnUrl="">
<div>
<ng-input for="userName" label="USER_NAME" type="text" />
<ng-input for="password" label="PASS_WORD" type="password" />
<ng-input for="yearOfBirth" label="Year of Birth" type="number" format="" />
<ng-input for="sex" label="Sex" type="radio" dataSource="" />
<ng-input for="sex" label="Sex" type="checkbox" dataSource="" />
<ng-input for="sex" label="Sex" type="dropdown" dataSource="" />
<ng-input for="sex" label="Sex" type="combobox" dataSource="" serverSide="false" />
<ng-input for="sex" label="Sex" type="combobox" dataSource="" serverSide="false" />
<ng-input for="dateOfBirth" label="Date of birth" type="datepicker" />
<ng-input for="dateOfBirth" label="Date of birth" type="timepicker" />
<ng-input for="dateOfBirth" label="Date of birth" type="datetimepicker" />
</div>
<div formGroup="addresses">
<div *ngFor="let address of addresses; let i=index">
<ng-input for="i" label="ADDRESS" />
</div>
</div>
</form>
<validation for="userName" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment