pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>This error occurs when <a href="api/ng/service/$location">$location</a> service is configured to use a hash prefix but this prefix was not present in a url that the <code>$location</code> service was asked to parse.</p>
<p>For example if you configure <code>$location</code> service with prefix <code>&#39;!&#39;</code>:</p>
<pre><code>myApp.config(function($locationProvider) {
$locationProvider.prefix(&#39;!&#39;);
});
</code></pre>
<p>If you e