docs: function attachToScope(scope, itemsToAttach) {
          if (!itemsToAttach || !itemsToAttach.length) { return; }
  
          itemsToAttach.push(function () {
              var i, val;
              for (i = 0; i < arguments.length; i++) {
                  val = arguments[i];
                  scope[itemsToAttach[i]] = val;
              }
          });
  
          $injector.invoke(itemsToAttach);
      }