Deprecate `bind-`, `bindon-`, `on-`, and `ref-` syntax in templates
See original GitHub issueWhich @angular/* package(s) are relevant/releated to the feature request?
compiler, core
Description
These template syntaxes are rarely used and unnecessarily expand the API surface of our template language. This issue is for tracking the deprecation of bind-
, bindon-
, on-
, and ref-
.
Proposed solution
Deprecate bind-
, bindon-
, on-
, and ref-
in v14 and create a migration for when they are removed.
Alternatives considered
N/A
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Deprecated APIs and features - Angular
The template prefixes bind- , on- , bindon- , and ref- have been deprecated in v13. Templates should use the more widely documented...
Read more >Template syntax reference - Lit.dev
lit-html templates are written using JavaScript template literals tagged with the html tag. ... Each binding type supports different types of values:.
Read more >Template Syntax | AngularDart Community Documentation
A template statement responds to an event raised by a binding target such as an element, component, or directive. You'll see template statements ......
Read more >Template Syntax - ts - Angular 2
Attribute Binding syntax resembles Property Binding. Instead of an element property between brackets, we start with the keyword attr followed by the name...
Read more >Template syntax - Angular
A template statement responds to an event raised by a binding target such as an element, component, or directive. You'll see template statements...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s right
Good catch! I totally missed that one.
That’s a good one, @flash-me 😊 In light of that, the template syntax planned for deprecation might be a familiar looking data binding syntax for Vue and Aurelia developers.