Open daliri72 opened 6 years ago
Hello I using maxlengthattribute in input. but it doesn't work. How can i solved it ?
maxlength
<input required name="phone" maxlength="10" [(ngModel)]="modelForget.phone" #phone="ngModel" style="direction: ltr;" autocomplete="off" class="form-control bg-gray" value="" placeholder="phone number" type="number">
import { CustomFormsModule } from 'ng2-validation'; @NgModule({ declarations: [ AppComponent, ], imports: [ BrowserModule, FormsModule, CustomFormsModule ], providers: [ ChangeTemplateService ], bootstrap: [AppComponent] }) export class AppModule { }
Hello I using
maxlength
attribute in input. but it doesn't work. How can i solved it ?