added missing doc parameter rootScope