Angular - Animations
Given this trigger definition:
What happens when the state changes from 'on' to 'off'?
trigger('toggle', [
state('on', style({ opacity: 1 })),
state('off', style({ opacity: 0 })),
transition('on => off', animate('500ms'))
])What happens when the state changes from 'on' to 'off'?
