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
Post a Comment