Comment
Dennis Braun
Tera Guru

Update:

The script is now working.

I did not consider that an async update must be performed:

 

$rootScope.$on('navQuery', function (event, obj) {
		$scope.data.query = obj;
			
		$scope.server.update().then(function(response){
		$scope.loadCorpus();
		});		
	});