this.userProfileForm.markAllAsTouched();if(this.userProfileForm.controls.firstName.value =='')this.scrollToFirstInvalidControl('firstName');elseif(this.userProfileForm.controls.lastName.value =='')this.scrollToFirstInvalidControl('lastName');elseif(this.userProfileForm.controls.email.value ==''...
parentForm 指的是 NgForm 指令,我们上面的例子没有 form,所以是 null。 stateChanges 是一个变更通知器,不重要,我们先无视它。 最重要的是 defaultErrorStateMatcher 对象 它来自 inject root provider -- ErrorStateMatcher,它的源码在error-options.ts 判断是否需要显示 error 的逻辑是 FormControl invalid 同时...
- It is now deprecated to provide *both* `AbstractControlOption`s and an async validators argument to a FormControl. Previously, the async validators would just be silently dropped, resulting in a probably buggy forms. Now, the constructor call is deprecated, and Angular will print a warning i...
voidin an expression now refers to the operator Previously an expression in the template like{{void}}referred to a property on the component class. After this change it now refers to the voidoperator, which would make the above example invalid. If you have ...
<mat-error *ngIf="username.invalid && username.errors.required"> The username field is required. </mat-error> </mat-form-field> </form> With this, we can have multiple errors of different kinds. Now, let’s see the markup result. ...
36-36: Remove unused tokenIsInvalid property. The tokenIsInvalid property is declared but never used in the component. Consider removing it if it's not needed. - tokenIsInvalid = false; Line range hint 60-61: Simplify string literal in alert. The alert message uses a string literal with ...
menu: add appendTo property Supported Themes @progress/kendo-theme-bootstrap: ^8.0.1 @progress/kendo-theme-default: ^8.0.1 @progress/kendo-theme-fluent: ^8.0.1 @progress/kendo-theme-material: ^8.0.1v16.1.0 24 May 2024 Bug Fixes checkbox: missing k-invalid class dropdowns, spreadsheet:...
character-reference-invalid 2.0.1 间接依赖 npm set-blocking 2.0.0 间接依赖 npm restore-cursor 4.0.0 间接依赖 npm npm-to-yarn 2.1.0 间接依赖 npm @webassemblyjs/wast-printer 1.11.6 间接依赖 npm parse5 6.0.1 间接依赖 npm shebang-regex 1.0.0 间接依赖 npm cssesc 3.0.0 间接依赖 npm compute...
Tests which mock ActivatedRoute instances may need to be adjusted because Router.createUrlTree now does the right thing in more scenarios. This means that tests with invalid/incomplete ActivatedRoute mocks may behave differently than before. Additionally, tests may now navigate to a real URL where ...
53427d875d fix invalid ImageKit quality parameter (#55193) 766548c3ec fix skip transfer cache on client (#55012) 17.3.2 (2024-03-28) compiler CommitTypeDescription 2b7bad5151 fix invoke method-based tracking function with context (#54960) ### compiler-cli Commit Type Description -- --...