ion-input class css code example
Example 1: ion input password
<ion-input formControlName="password" type="password"></ion-input>
Example 2: input output ionic
import {Output, EventEmitter} from '@angular/core';
export class ChildComponent {
...
@Output() typeChanged = new EventEmitter<string>();
type = "got";
emit() {
this.typeChanged.emit(this.type);
}
}
<div>
<component (typeChanged)="onTypeEmitted($event)"></component>
<div>
export class ParentComponent {
...
onTypeEmitted(type: string) {
}
}