Accessing root Angular 2 injector instance globally
<p>How to access an instance of root Angular 2 injector globally (say, from browser console).</p>

<p>In Angular 1 it was <code>angular.element(document).injector()</code>.</p>

<p>It can be useful during testing and exploration, to use browser console to get injector to then access instances of different components, directives, services etc.</p>