text: /**
   * Created by Laggo on 11/5/15.
   */
  app.directive("categorylist", ['categoryService',function (categoryService) {
      return {
          restrict: 'E',
          templateUrl: 'www/html/directive/categoryList.html',
          replace: true,
          transclude: true,
          link: function (scope, ele, attr) {
              categoryService.list().then(function(result){
                  scope.list = result
              })
          },
      }
  }]);
  