<label [class]="dark?'dark':'light'">
    {{label}}

    <input
    [class]="dark?'dark':'light'"
    [type]="isVisible ? 'text' : type"
    [placeholder]="placeholder"
    [(ngModel)]="inputModel" 
    (ngModelChange)="inputModelChange.emit(inputModel)" 
    (change)="change.emit($event)"
    (focus)="focus.emit($event)"
    (blur)="blur.emit($event)">
    <i *ngIf="type == 'password'" class="material-icons" (click)="togglePasswordVisible()">{{toggleText}}</i>
</label>