0ea067c94766fb406b4c1b26c5a75f7045eaec9d
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / ux / mwtnInventory / mwtnInventory-module / src / main / resources / mwtnInventory / components / equipment.ts
1 declare var angular: angular.IAngularStatic;  
2
3 import { Equipment } from '../models/equipment';
4
5 const mwtnInventory = angular.module('app.mwtnInventory');
6
7 const EquipmentDirective = () => {
8   return {
9     templateUrl: 'src/app/mwtnInventory/components/equipment.html',
10     controller: 'mwtnEquipmentCtrl',
11     controllerAs: 'vm',
12     scope: {
13       equipment: "="
14     }
15   }
16 };
17
18 mwtnInventory.directive('mwtnEquipment', EquipmentDirective);
19
20 export class EquipmentController {
21   constructor(private $scope: ng.IScope & { equipment: Equipment }) {
22    
23   }
24
25  
26 }
27
28 mwtnInventory.controller('mwtnEquipmentCtrl', ['$scope', EquipmentController]);