Maxlength ionic

I am creating an application with ionica 3, and I need an input only supports 6 characters that someone knows how to do?
try it this way:

but let the text enter always just mark a red line!!

You need to bind your textbox to a formcontrol item.