`this.$$phase` is troublesome when you happen to have an isolated scope. Could this be replaced by `$rootScope.$$phase`?