'use strict'; /* Controllers */ app.controller('mainCtrl', ['$scope', '$http', function ($scope, $http) { $scope.logout = function () { $http({ method: 'POST', url: '/superadmin/logout' }).then(function (data) { }).catch(function (data) { }); }; $scope.userHeadImg = "/1.0/img/b" + Math.round(Math.random() * 20) + ".jpg"; }]); app.controller('TypeaheadDemoCtrl', ['$scope', '$http', function ($scope, $http) { $scope.selected = undefined; $scope.states = ['1']; }]);