$wrap is a functoin that queries the $ctrl collection of components and then returns a wrapper around
the returned object with methods that fill in the dependency injection dependencies to the method call from the set of
common services.
Parameters
var html = $wrap('chart').$html()