typebytes / angular-checklist

🔥 Curated list of common mistakes made when developing Angular applications
https://angular-checklist.dev
MIT License
316 stars 66 forks source link

content: modified the assignment to the declaration of the variable #93

Closed eduardoRoth closed 2 years ago

eduardoRoth commented 2 years ago

I changed the code to assign the variable data$ on initialization instead of ngOnInit function.

Should we create a topic about this and how it follows the declarative paradigm?

d3lm commented 2 years ago

Merging this one now. I would love to get a new item that explains the field initialisation a bit more if it's recommended now. We can link to the Google guideline.