Since you deregister "pre/postcompose" events in the deactivate method the  `if (!$scope.isActive)` and the use of `scope.isActive` in activate/deactivate functions is useless. You can remoe it.