Angular - Is Output guaranteed when called in ngOnDestroy? -


the title says all... output guaranteed emit when being called during ondestroy lifecycle?

i know works, i've tested need guarantee or advice otherwise why avoid doing that.

thanks.

a definitive answer question should come angular team member. however, seems safe assume event will delivered. remember onngdestroy not destroying instance of component; it's component ending life cycle component within view structure. long component "subscribing" @output property of component in question, component instance should not garbage collected, meaning it, along emitter property, should safe , continue function until event has been delivered.

therefore, although not "guarantee", seem safe assume output will emit.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -