docs: function waitForRender() {
              var deferredRender = $q.defer();
              function wait() {
                if ($element.find("table:visible").length === 0) {
                  $timeout(wait, 100);
                } else {
                  deferredRender.resolve();
                }
              }
  
              $timeout(wait);
              return deferredRender.promise;
            }