Forgive me if I missed something, but I haven't found anything in the documentation to clear up my issue.
I'm using this library for a task workflow and I want the $scope.task to get updated with state info on every transition. The problem being, the onTransition and onEnterState methods fire after the init which means I have to write some special logic to handle the errors it throws.
Is there an easy way to exclude the init from the onTransition or onEnterState methods? Or is there another method for this?
I cannot reasonably/cleanly write this method for every state I have since there are many.
Forgive me if I missed something, but I haven't found anything in the documentation to clear up my issue.
I'm using this library for a task workflow and I want the $scope.task to get updated with state info on every transition. The problem being, the
onTransition
andonEnterState
methods fire after theinit
which means I have to write some special logic to handle the errors it throws.Is there an easy way to exclude the
init
from theonTransition
oronEnterState
methods? Or is there another method for this?I cannot reasonably/cleanly write this method for every state I have since there are many.