diff options
Diffstat (limited to 'sdnr/wireless-transport/code-Carbon-SR1/ux/mwtnInventory/mwtnInventory-module/src/main/resources/mwtnInventory/components/equipment.ts')
-rwxr-xr-x | sdnr/wireless-transport/code-Carbon-SR1/ux/mwtnInventory/mwtnInventory-module/src/main/resources/mwtnInventory/components/equipment.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sdnr/wireless-transport/code-Carbon-SR1/ux/mwtnInventory/mwtnInventory-module/src/main/resources/mwtnInventory/components/equipment.ts b/sdnr/wireless-transport/code-Carbon-SR1/ux/mwtnInventory/mwtnInventory-module/src/main/resources/mwtnInventory/components/equipment.ts new file mode 100755 index 00000000..0ea067c9 --- /dev/null +++ b/sdnr/wireless-transport/code-Carbon-SR1/ux/mwtnInventory/mwtnInventory-module/src/main/resources/mwtnInventory/components/equipment.ts @@ -0,0 +1,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]); |