1 namespace app.controllers {
2 export class SelectCommand{
4 public static $inject = ['$scope', 'APIEndPoint'];
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) {
11 var controller = this;
14 .$promise.then((result) => {
15 controller.tags = result.info;
20 .$promise.then((result) => {
21 controller.commands = result.info;
23 this.currentTag = 'all';
27 private changeTag(tag: string) {
28 this.currentTag = tag;