code: function (plugin){
        if (Utils.isObject(plugin) && Utils.isFunction(plugin.install)) {
          var installArgs = [];
  
          // Inject plugin dependencies as requested, using the synchronous
          // require API for Require.js and Almond.js.
          if(plugin.$inject){
            plugin.$inject.forEach(function (dependency) {
              installArgs.push(require(dependency));
            });
          }
  
          plugin.install.apply(plugin, installArgs);
  
          return this;
        } else {
          throw new TypeError('Plugin must implement \'install()\' method.');
        }
      }
docs: Use the passed plugin features by requiring its dependencies and installing it.