1 namespace app.controllers {
4 public static $inject = ['$scope', 'APIEndPoint','$uibModalInstance'];
5 private tags: string[];
6 private commands: string[];
7 private searchText: string;
8 private currentTag: string;
10 constructor($scope: ng.IScope, private APIEndPoint: services.APIEndPoint, private $modalInstance: ng.ui.bootstrap.IModalServiceInstance) {
11 var controller = this;
12 console.log('preview');
16 .$promise.then((result) => {
17 controller.commands = result.info;
19 this.currentTag = 'all';