forked from bbachi/angular-nodejs-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.component.html
More file actions
37 lines (37 loc) · 1.46 KB
/
Copy pathapp.component.html
File metadata and controls
37 lines (37 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<app-header></app-header>
<div class="container">
<div class="row">
<div class="col-md-7 mrgnbtm">
<h2>Create User</h2>
<form [formGroup]="userForm" (ngSubmit)="onSubmit()">
<div class="row">
<div class="form-group col-md-6">
<label for="exampleInputEmail1">First Name</label>
<input type="text" class="form-control" formControlName="firstName" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="First Name">
</div>
<div class="form-group col-md-6">
<label for="exampleInputPassword1">Last Name</label>
<input type="text" class="form-control" formControlName="lastName" id="exampleInputPassword1" placeholder="Last Name">
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label for="exampleInputEmail1">Email</label>
<input type="text" class="form-control" formControlName="email" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Email">
</div>
</div>
<button type="submit" [disabled]="!userForm.valid" class="btn btn-danger">Create</button>
</form>
</div>
<div class="col-md-4 mrgnbtm">
<app-display-board
[userCount]="userCount"
(getUsersEvent)="getAllUsers()"
>
</app-display-board>
</div>
</div>
</div>
<div class="mrgnbtm">
<app-users *ngIf="users.length !== 0" [users]="users"></app-users>
</div>