title: Template not loading
body: <p>I have a problem that occurs sometimes, when the template entry is not defined in the template cache, it happens every once in a while after reloading the page.</p>
  
  <p>The related code:</p>
  
  <p>index.html</p>
  
  <pre><code>&lt;div ng-include src="'Views/templates.html'"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Views/templates.html</p>
  
  <pre><code>&lt;script type="text/ng-template" id="customTemplate/spare-request-item.html"&gt;    
    &lt;div&gt;..&lt;/div&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>directive.js</p>
  
  <pre><code>.directive("spare", function ($templateCache) {
  console.log($templateCache.info());, //return length 30 when it fails, 31 otherwise
  console.log($templateCache.get('customTemplate/spare-request-item.html'));//return undefined when it fails
  return {
      ..
      templateUrl: 'customTemplate/spare-request-item.html',
  </code></pre>
  
  <p>Anyone else has experienced this or know how to assure that the template is loaded and parsed before the directive runs? It is a angular bug?</p>