ngular.injector();
expect($injector.get(&#39;$injector&#39;)).toBe($injector);
expect($injector.invoke(function($injector) {
  return $injector;
})).toBe($injector);
</code></pre>
<h1 id="injection-function-annotation">Injection Function Annotation</h1>
<p>JavaScript does not have annotations, and annotations are needed for dependency injection. The
following are all valid ways of annotating function with injection arguments and are equivalent.</p>
<pre><code class="lang-js">// inferred (only works if code 