5a257d02a6
Currently when someone serves the "person_management" playground example, there will be runtime exceptions by `@angular/forms` if someone clicks on one of the two buttons rendered in the example. This happens because the example is outdated and the input elements using `ngModel` do not specify a proper "name" while being inside of a `<form>` element. A name is required inside of a form. The failure is not specific to Ivy and is not covered by any test because the e2e tests for this example are just asserting that the page properly loads (the error only shows up one of the buttons has been clicked) This is the reason why these errors were never visibile to the e2e tests. Though in order to make this example work, we should this fix these failures so that the example can work as expected. ``` FullNameComponent.html:7 ERROR Error: If ngModel is used within a form tag, either the name attribute must be set or the form control must be defined as 'standalone' in ngModelOptions. Example 1: <input [(ngModel)]="person.firstName" name="first"> Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}"> at Function.TemplateDrivenErrors.missingNameException (template_driven_errors.ts:40) at NgModel._checkName (ng_model.ts:319) at NgModel._checkForErrors (ng_model.ts:302) at NgModel.ngOnChanges (ng_model.ts:215) at Object.checkAndUpdateDirectiveInline (provider.ts:208) at checkAndUpdateNodeInline (view.ts:429) at checkAndUpdateNode (view.ts:389) at debugCheckAndUpdateNode (services.ts:431) at debugCheckDirectivesFn (services.ts:392) at Object.eval [as updateDirectives] (FullNameComponent.html:7) ``` PR Close #28490 |
||
---|---|---|
.buildkite | ||
.circleci | ||
.github | ||
.vscode | ||
aio | ||
docs | ||
integration | ||
modules | ||
packages | ||
scripts | ||
third_party/github.com/bazelbuild/bazel-toolchains/bazelrc | ||
tools | ||
.bazelignore | ||
.bazelrc | ||
.clang-format | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
.nvmrc | ||
BUILD.bazel | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
WORKSPACE | ||
browser-providers.conf.js | ||
gulpfile.js | ||
index.bzl | ||
karma-js.conf.js | ||
package.json | ||
protractor-e2e.conf.js | ||
protractor-perf.conf.js | ||
shims_for_IE.js | ||
test-events.js | ||
test-main.js | ||
tslint.json | ||
yarn.lock | ||
yarn.lock.readme.md |
README.md
Angular
Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.