Check out example codes for "ion input password". It will help you in understanding the concepts better.

Code Example 1

<ion-input formControlName="password" type="password"></ion-input>

Learn ReactJs, React Native from akashmittal.com