OnDestroy
인터페이스
안정화
A lifecycle hook that is called when a directive, pipe, or service is destroyed. Use for any custom cleanup that needs to occur when the instance is destroyed.
ngOnDestroy
voidA callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
@returns
void상세 내용으로 이동