If the module has an isolated scope then any properties that are set on the $rootScope can't be used.
To create a new scope we need to use $scope.$new(true) that returns a new $scope object. True means that is isolated and will not inherit any properties.
Docs about $new https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$new