How can we create an animation when we enter or leave a component code example
Example: angular transition animation
content_copy
animations: [
trigger('openClose', [
state('true', style({ height: '*' })),
state('false', style({ height: '0px' })),
transition('false <=> true', animate(500))
])
],