$http.get(Routes.advisories_path({format: 'json', page: $scope.page, q: $scope.q})).then(function(res) {
      $scope.page        = res.data.page;
      $scope.total_items = res.data.advisories_count;
      $scope.advisories  = res.data.advisories;
    });