1234567891011121314151617181920 |
- 'use strict';
- /* Controllers */
- app.controller('mainCtrl', ['$scope', '$http', function ($scope, $http) {
- $scope.logout = function () {
- $http({
- method: 'POST',
- url: '/ad/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'];
- }]);
|