This function will execute a function when an HTML element is ready. It's similar to the ng.ready
function, but does not wait for the entire document.
For example, if the page header contains a login component, instead of waiting for the entire page to load before creating the component. You can set this function to execute when the header is ready regardless of the document status.