Wednesday, August 8, 2018

Angular Performance Checklist

1. Remove console.log()
2. Logic should not be in template.
3. Never initialize a member object variable until it is use.
4. Monitor changeDetection Strategy closely if it should be OnPush or default.
5. Enable JLint and TSLint in VS Code
6. Use trackBy in ngFor if items are adding in array dynamically.
7. preserveWhiteSpace should not be true. By default it is false.

No comments:

Followers

Link