aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wireless-transport/code-Carbon-SR1/ux/mwtnInventory/mwtnInventory-module/src/main/resources/mwtnInventory/components/equipment.ts
blob: 0ea067c94766fb406b4c1b26c5a75f7045eaec9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
declare var angular: angular.IAngularStatic;  

import { Equipment } from '../models/equipment';

const mwtnInventory = angular.module('app.mwtnInventory');

const EquipmentDirective = () => {
  return {
    templateUrl: 'src/app/mwtnInventory/components/equipment.html',
    controller: 'mwtnEquipmentCtrl',
    controllerAs: 'vm',
    scope: {
      equipment: "="
    }
  }
};

mwtnInventory.directive('mwtnEquipment', EquipmentDirective);

export class EquipmentController {
  constructor(private $scope: ng.IScope & { equipment: Equipment }) {
   
  }

 
}

mwtnInventory.controller('mwtnEquipmentCtrl', ['$scope', EquipmentController]);