angular-cn/packages/compiler/test/render3
ayazhafiz a92d97cda7 fix(compiler): report errors for missing binding names (#34595)
Currently, would-be binding attributes that are missing binding names
are not parsed as bindings, and fall through as regular attributes. In
some cases, this can lead to a runtime error; trying to assign `#` as a
DOM attribute in an element like in `<div #></div>` fails because `#` is
not a valid attribute name.

Attributes composed of binding prefixes but not defining a binding
should be considered invalid, as this almost certainly indicates an
unintentional elision of a binding by the developer. This commit
introduces error reporting for attributes with a binding name prefix but
no actual binding name.

Closes https://github.com/angular/vscode-ng-language-service/issues/293.

PR Close #34595
2020-02-10 16:29:32 -08:00
..
util fix(compiler): absolute source span for template attribute expressions (#33189) 2019-10-17 18:48:59 -04:00
view fix(ivy): correctly associate output bound events with directives (#31938) 2019-12-17 14:39:33 -08:00
BUILD.bazel build: derive ts_library dep from jasmine_node_test boostrap label if it ends in `_es5` (#34736) 2020-01-15 14:58:07 -05:00
README.md feat(compiler): implement "enableIvy" compiler option (#21427) 2018-01-18 18:22:44 -06:00
r3_ast_absolute_span_spec.ts fix(ivy): record correct absolute source span for ngForOf expressions (#31813) 2019-12-16 08:11:48 -08:00
r3_ast_spans_spec.ts feat(ivy): include value spans for attributes, variables and references (#30181) 2019-07-25 16:36:32 -07:00
r3_template_transform_spec.ts fix(compiler): report errors for missing binding names (#34595) 2020-02-10 16:29:32 -08:00
style_parser_spec.ts refactor(ivy): Switch styling to new reconcile algorithm (#34616) 2020-01-24 12:23:00 -08:00

README.md

Tests in this directory are excluded from running in the browser and only run in node.