JobboardViewsCount.Controller.js 620 Bytes
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

'use strict'

angular.module('JBREST').controller('JobboardViewsCount', function ($scope, $mdDialog, MasterCtrl, $log, SwapLang) {
  $scope.lang = getLang()
  $scope.HrSwlang = SwapLang
  $scope.listJobboardViewsCount = []
  $scope.errorText = {
    tha: 'ไม่สามารถเชื่อมต่อกับ Jobboard Service !',
    eng: 'Can\'t connect Jobboard Service !'
  }
  $scope.init = function () {
    MasterCtrl.TPageViewsController.getQuery().$promise.then(function ($res) {
      $scope.listJobboardViewsCount =  $res
    }, () => {
      SwapLang.getAlert(244)
    })
  }
  $scope.init()



})