docs: function generateRerenderCallback(scope) {
          return function () {
              var remodel = scope.remodel || function () { return true; };
              return $q.when(remodel(scope))
                  .then(function () {
                      return scope.rerenderComponent();
                  });
          };
      }