 (ns traveler.ng.core
-  (:require [traveler.ng.userdata :refer [userdata]])
   (:use-macros [purnam.core :only [!]]
                [gyr.core :only [def.module def.controller def.directive]]))
 

                            (* $scope.usersPerPage $scope.currentPage)))))

  (! $scope.loadUsers (fn []
                        (! $scope.usersLoaded "loading")
                        (-> $http
                            (.get (str "/api/users/" $scope.usersPerPage "/" $scope.currentPage))

                       ($scope.loadUsers)
                       (do
                         (! $scope.usersLoaded "loading")
                         (! $scope.isSearch true)
                         (! $scope.showPaging false)
                         (-> $http
                             (.get (str "/api/user/search/" $scope.query))
