I consider this template abuse. Templates are view layer animals that depict a state of affairs and accept input. ngSwitch
is not a control flow concept, so trying to trigger component code actions from it does not make sense.
↧
How to call custom function after ngSwitch new view is created
↧