<p dir="auto">Search for “AUTO_STYLE” returns two API entries in the search results. Both link to the same API page.</p>
<p dir="auto">Searching for that in the API search revealed  two entries as well: (1) in core, which is deprecated and (2) in animations.</p>
<p dir="auto">Curiously BOTH pages present the SAME content … the content for the one in animations. The info about the deprecated  <code class="notranslate">AUTO_STYLE</code> in core doesn’t appear. The browser address bar shows the two different paths to that content.</p>
<p dir="auto">There is an API filter for deprecated so clearly we intend to show deprecated objects in the API search. The bug there is that we show the non-deprecated animations content in the deprecated core link.</p>
<p dir="auto">This may be <strong>a symptom of a deeper problem with API pages</strong> that have the same title. It is unusual ... perhaps bad ... but not impossible for two different modules to have an object with the same name (that's what is happening here with <code class="notranslate">AUTO_STYLE</code>).  If that is OK, then the content should be different. I think a bug is causing the last-generated content to be assigned to all links with the same title.</p>
<hr>
<p dir="auto"><strong>I'm submitting a ...</strong>  (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto">While playing with Angular 2, I realized that the order of providers at bootstrapping is important, but I did not understood why. It would be great if someone can explain it.</p>
<p dir="auto">HASHLOCATIONSTRATEGY DID NOT WORK</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="bootstrap(APP, [JSONP_PROVIDERS, provide(LocationStrategy, { useClass: HashLocationStrategy }), provide(APP_BASE_HREF, {useValue: '/'}), ROUTER_PROVIDERS]);"><pre class="notranslate"><span class="pl-en">bootstrap</span><span class="pl-kos">(</span><span class="pl-c1">APP</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">JSONP_PROVIDERS</span><span class="pl-kos">,</span> <span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-v">LocationStrategy</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">useClass</span>: <span class="pl-v">HashLocationStrategy</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-c1">APP_BASE_HREF</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">useValue</span>: <span class="pl-s">'/'</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">ROUTER_PROVIDERS</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">HASHLOCATIONSTRATEGY WORKED</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="bootstrap(APP, [JSONP_PROVIDERS, ROUTER_PROVIDERS, provide(LocationStrategy, { useClass: HashLocationStrategy }),provide(APP_BASE_HREF, {useValue: '/'})]);"><pre class="notranslate"><span class="pl-en">bootstrap</span><span class="pl-kos">(</span><span class="pl-c1">APP</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-c1">JSONP_PROVIDERS</span><span class="pl-kos">,</span> <span class="pl-c1">ROUTER_PROVIDERS</span><span class="pl-kos">,</span> <span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-v">LocationStrategy</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">useClass</span>: <span class="pl-v">HashLocationStrategy</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span><span class="pl-en">provide</span><span class="pl-kos">(</span><span class="pl-c1">APP_BASE_HREF</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">useValue</span>: <span class="pl-s">'/'</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>