bootstrap.js 559 B

1234567891011121314151617181920
  1. 'use strict';
  2. /* Controllers */
  3. app.controller('mainCtrl', ['$scope', '$http', function ($scope, $http) {
  4. $scope.logout = function () {
  5. $http({
  6. method: 'POST',
  7. url: '/ad/logout'
  8. }).then(function (data) {
  9. }).catch(function (data) {
  10. });
  11. };
  12. $scope.userHeadImg = "/1.0/img/b" + Math.round(Math.random() * 20) + ".jpg";
  13. }]);
  14. app.controller('TypeaheadDemoCtrl', ['$scope', '$http', function ($scope, $http) {
  15. $scope.selected = undefined;
  16. $scope.states = ['1'];
  17. }]);