Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove function calls for assigning variables in templates #1087

Open
Tracked by #1797
TheSlimvReal opened this issue Jan 24, 2022 · 0 comments
Open
Tracked by #1797

Remove function calls for assigning variables in templates #1087

TheSlimvReal opened this issue Jan 24, 2022 · 0 comments
Labels
Type: Refactoring / Technical Enh. Technical Enhancement without changes for the user
Milestone

Comments

@TheSlimvReal
Copy link
Collaborator

TheSlimvReal commented Jan 24, 2022

prevent usages like

<some-comp [title]="getTitle()></some-comp>

and instead use plain variables that are regularly updated

<some-comp [title]="title"></some-comp>

When using a function, this function is executed thousands of times and therefore has impact on the performance.

All cases like this should also be removed from the software.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Refactoring / Technical Enh. Technical Enhancement without changes for the user
Projects
Status: Todo (ready for work)
Development

No branches or pull requests

2 participants