× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Don't forget your scripts when using Angular

john o'connor
Nov 24, 2014
<p>When using angular JS, and especially when including external dependencies in your module (ie:  angular.module('yourModule', [ 'dependency1', 'dependency2' ])) make sure to also add the javascript source for that dependency to your html as well.  </p><pre><code class="language-html">&lt;script src="/path/to/dependency1.min.js" /&gt; &lt;script src="/path/to/dependency2.min.js" /&gt;</code></pre><p>Otherwise the scripts won't be loaded and you'll see the dreaded "injector err".</p>
comments powered by Disqus