refactor: decompose app component

This commit is contained in:
waterplea
2022-03-26 16:24:34 +03:00
committed by Lucy C
parent 50f14fe040
commit d7bdc15e49
36 changed files with 666 additions and 525 deletions

View File

@@ -0,0 +1,17 @@
import { animate, style, transition, trigger } from '@angular/animations'
const TRANSITION = '{{duration}}ms {{delay}}ms ease-in-out'
const DURATION = { params: { duration: 300, delay: 0 } }
export const heightCollapse = trigger('heightCollapse', [
transition(
':enter',
[style({ height: 0 }), animate(TRANSITION, style({ height: '*' }))],
DURATION,
),
transition(
':leave',
[style({ height: '*' }), animate(TRANSITION, style({ height: 0 }))],
DURATION,
),
])