code: function checkTreeTable(template, scope) {
                      var elemNode = template[0].querySelector('[tree-dnd-node]'),
                          attrInclude;
  
                      scope.isTable = undefined;
                      if (elemNode) {
                          elemNode    = angular.element(elemNode);
                          attrInclude = elemNode.attr('ng-include');
                      } else {
                          return;
                      }
  
                      if (attrInclude) {
                          var treeInclude = $parse(attrInclude)(scope) || attrInclude;
                          if (typeof treeInclude === 'string') {
                              return $http.get(
                                  treeInclude,
                                  {cache: $templateCache}
                              ).then(function (response) {
                                      var data          = response.data || '';
                                      data              = data.trim();
                                      //scope.templateNode = data;
                                      var tempDiv       = document.createElement('div');
                                      tempDiv.innerHTML = data;
                                      tempDiv           = angular.element(tempDiv);
                                      scope.isTable     = !tempDiv[0].querySelector('[tree-dnd-nodes]');
                                  }
                              );
                          }
                      } else {
                          scope.isTable = !elemNode[0].querySelector('[tree-dnd-nodes]');
                          //scope.templateNode = elemNode.html();
                      }
                      $TreeDnDViewport.setTemplate(scope, scope.templateNode);
                      //elemNode.html('');
                  }
docs: apply Template