OSDN Git Service

[Develop and Manual test] /api/v1/tagList
[eos/zephyr.git] / front-end / app / scripts / controllers / SelectCommand.ts
1 namespace app.controllers {
2     export class SelectCommand{ 
3
4         public static $inject = ['$scope', 'APIEndPoint'];
5         private tags: string[];
6
7         constructor($scope: ng.IScope, private APIEndPoint: services.APIEndPoint) {
8             var controller = this;
9             this.APIEndPoint
10                 .getTags()
11                 .$promise.then((result) => {
12                    controller.tags = result.info; 
13                 });
14
15         } 
16     }
17 }