-
Notifications
You must be signed in to change notification settings - Fork 4k
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
表单重置未生效? #114
Comments
bug confirm, thanks. |
related angular/angular#9700 |
private resetForm(forms:NgForm[]) { |
Can't bind to 'formGroup' since it isn't a known property of 'form'. (" <form nz-form [ERROR ->][formGroup]="validateForm" class="login-form" (ngSubmit)="_submitForm()"> <div nz-for"): ng:///AuthModule/LoginPageComponent.html@20:26 No provider for ControlContainer (" [ERROR ->]<form nz-form [formGroup]="validateForm" class="login-form" (ngSubmit)="_submitForm()"> "): ng:///AuthModule/LoginPageComponent.html@20:12 No provider for NgControl (" <div nz-form-control [nzValidateStatus]="validateForm.controls.userName"> [ERROR ->]<nz-input formControlName="userName" [nzPlaceHolder]="'Username'" [nzSize]="'large'"> "): ng:///AuthModule/LoginPageComponent.html@23:24 No provider for NgControl (" <div nz-form-control [nzValidateStatus]="validateForm.controls.password"> [ERROR ->]<nz-input formControlName="password" [nzType]="'password'" [nzPlaceHolder]="'Password'" [nzSize]="'la"): ng:///AuthModule/LoginPageComponent.html@33:24 No provider for NgControl (" [ERROR ->] Remember me "): ng:///AuthModule/LoginPageComponent.html@43:24 at syntaxError (http://localhost:4201/vendor.bundle.js:85450:34) at TemplateParser.webpackJsonp.../../../compiler/@angular/compiler.es5.js.TemplateParser.parse (http://localhost:4201/vendor.bundle.js:96574:19) at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileTemplate (http://localhost:4201/vendor.bundle.js:110726:39) at http://localhost:4201/vendor.bundle.js:110646:62 at Set.forEach (native) at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileComponents (http://localhost:4201/vendor.bundle.js:110646:19) at http://localhost:4201/vendor.bundle.js:110533:19 at Object.then (http://localhost:4201/vendor.bundle.js:85439:156) at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler._compileModuleAndComponents (http://localhost:4201/vendor.bundle.js:110532:26) at JitCompiler.webpackJsonp.../../../compiler/@angular/compiler.es5.js.JitCompiler.compileModuleAsync 涉及到交互就报这个错误,是我少引入了什么东西了么 |
@htmlcss23 read the doc again. |
解决了。谢谢 |
… "form.reset()" change the nz-input to not trigger "view -> control updating" while "control -> view updating" close NG-ZORRO#114
…when "form.reset()" called change the "writeValue" to not trigger "view -> control updating" while "control -> view updating" close NG-ZORRO#114
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
I'm submitting a...
Current behavior
表单重置问题,form.reset()后表单dirty仍为true。使用input未出现该情况
![image](https://user-images.githubusercontent.com/13466494/29514794-5fde6cd0-869c-11e7-8426-b729ed2a6d02.png)
The text was updated successfully, but these errors were encountered: