Blame view

resources/js/tips.js 507 Bytes
e77200db5   nologostudio.ru   Initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  import './tipEditorComponent';
  
  angular
      .module('footyroom')
  
      .controller('TipController', [
          '$uibModal',
          'dateFormat',
          function ($uibModal, dateFormat) {
              const vm = this;
  
              dateFormat($('.btip'));
  
              vm.editTip = editTip;
  
              function editTip(id) {
                  $uibModal.open({
                      template: `<tip-editor id="${id || ''}" dismiss="$dismiss()"></tip-editor>`,
                  });
              }
          },
      ]);