mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(core): Remove note to skip arrow functions in best practices
Arrow functions are now supported and this note is no longer needed
This commit is contained in:
committed by
Alon Mishne
parent
75c40e7ac7
commit
ed78fa05c7
@@ -111,7 +111,6 @@ Here is a link to the most recent Angular style guide https://angular.dev/style-
|
||||
- Keep templates simple and avoid complex logic
|
||||
- Use native control flow (`@if`, `@for`, `@switch`) instead of `*ngIf`, `*ngFor`, `*ngSwitch`
|
||||
- Do not assume globals like (`new Date()`) are available.
|
||||
- Do not write arrow functions in templates (they are not supported).
|
||||
- Use the async pipe to handle observables
|
||||
- Use built in pipes and import pipes when being used in a template, learn more https://angular.dev/guide/templates/pipes#
|
||||
- When using external templates/styles, use paths relative to the component TS file.
|
||||
|
||||
Reference in New Issue
Block a user