Simplify classes.

This commit is contained in:
Alexis Lahouze 2017-08-09 00:11:50 +02:00
parent 985174eec9
commit 5f413f0cad

View File

@ -16,7 +16,7 @@ import { Account } from './account';
</label> </label>
<div class="col-sm-7" <div class="col-sm-7"
[ngClass]="{'has-danger': name.errors}"> [class.has-danger]="name.errors">
<input class="form-control" <input class="form-control"
id="name" formControlName="name" id="name" formControlName="name"
placeholder="Account name"> placeholder="Account name">
@ -33,7 +33,7 @@ import { Account } from './account';
</label> </label>
<div class="col-sm-7" <div class="col-sm-7"
[ngClass]="{'has-danger': authorizedOverdraft.errors}"> [class.has-danger]="authorizedOverdraft.errors">
<div class="input-group"> <div class="input-group">
<input class="form-control" <input class="form-control"
id="authorized-overdraft" formControlName="authorizedOverdraft" id="authorized-overdraft" formControlName="authorizedOverdraft"