Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxlength #118

Open
daliri72 opened this issue Jan 8, 2018 · 0 comments
Open

maxlength #118

daliri72 opened this issue Jan 8, 2018 · 0 comments

Comments

@daliri72
Copy link

daliri72 commented Jan 8, 2018

Hello
I using maxlength attribute in input. but it doesn't work.
How can i solved it ?

 <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 { }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant