<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report"><pre class="notranslate"><code class="notranslate">[x] bug report
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
The promise of <code class="notranslate">whenStable</code> does resolve in time when used in an <code class="notranslate">async</code> test with a reactive form and async validators. Code and unit tests within the <code class="notranslate">whenStable</code> block do not run.<br>
However when using jasmines <code class="notranslate">done</code> callback instead of <code class="notranslate">async</code> the behavior is correct</p>
<p dir="auto"><strong>Expected behavior</strong><br>
same as when using jasmines <code class="notranslate">done</code> callback</p>
<p dir="auto"><strong>Minimal reproduction of the problem</strong><br>
<a href="http://embed.plnkr.co/OKNpXpeBBlQLUXJZidlS/" rel="nofollow">http://embed.plnkr.co/OKNpXpeBBlQLUXJZidlS/</a></p>
<p dir="auto"><strong>I'm submitting a bug report</strong></p>
<p dir="auto"><strong>Current behavior</strong><br>
I am using Angular 2 for only the admin section and login section of my application. so I bootstrap my application for "/login" and "/admin/**" route. So inorder to protect the admin router I used AUTH Guard Service as explained in Routing and Navigation Doc of Angular 2. It was working till the RC 4 but since RC5 it is giving the Issue. It suggest to bootstrap atleast One Component but there is no other component than Login and Admin</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-RC-5 to 2.0.0</li>
<li>I have posted the issue in StackOverflow and Gitter but didn't the any solution as it is said to be the known bug</li>
</ul>
<p dir="auto"><code class="notranslate">zone.js:344 Unhandled Promise rejection: Bootstrap at least one component before injecting Router. ; Zone: &lt;root&gt; ; Task: Promise.then ; Value: Error: Bootstrap at least one component before injecting Router.(…) Error: Bootstrap at least one component before injecting Router. at setupRouter (http://localhost:3000/scripts/@angular/router//bundles/router.umd.min.js:13:18707) at NgModuleInjector.get (AppModule.ngfactory.js:372:57) at NgModuleInjector.get (AppModule.ngfactory.js:377:118) at NgModuleInjector.get (AppModule.ngfactory.js:502:99) at NgModuleInjector.AppModuleInjector.createInternal (AppModule.ngfactory.js:561:64) at NgModuleInjector.create (http://localhost:3000/scripts/@angular/core//bundles/core.umd.min.js:30:1140) at NgModuleFactory.create (http://localhost:3000/scripts/@angular/core//bundles/core.umd.min.js:30:673) at eval (http://localhost:3000/scripts/@angular/core//bundles/core.umd.min.js:29:25106) at ZoneDelegate.invoke (http://localhost:3000/scripts/zone.js/dist/zone.js:192:28) at Object.onInvoke (http://localhost:3000/scripts/@angular/core//bundles/core.umd.min.js:29:16609)consoleError @ zone.js:344_loop_1 @ zone.js:371drainMicroTaskQueue @ zone.js:375ZoneTask.invoke @ zone.js:297 zone.js:346 Error: Uncaught (in promise): Error: Bootstrap at least one component before injecting Router.(…)consoleError @ zone.js:346_loop_1 @ zone.js:371drainMicroTaskQueue @ zone.js:375ZoneTask.invoke @ zone.js:297</code></p>