Back to resources

Property initialization in Glimmer components

Published
May 9, 2023
Author
Alex Vovchuk
Type
Article
View resource
When thinking about Ember migration from Classic components to Glimmer classes, one of the big changes is replacing init() hook with constructor(). But do we really need to mimic the old structure? Properties initialization based on args passed from parent is the most frequent case.

Tags

Octane Glimmer

Related resources