"No component factory found for" Error When trying to push from one Page to another : <p>I get an error when trying to push from one page to another. When I try to push  to same page, it won't give that error. Only i get error when pushing from one page to another. 'setRoot()' also not giving an error. </p>

<pre><code>this.navCtrl.push( Page7 );
</code></pre>

<p>I have added the Page7 to app.module.ts.</p>

<pre><code>import { NgModule } from '@angular/core';
import { IonicApp, IonicModule } from 'ionic-angular';
import { MyApp } from './app.component';

import { Page1 } from '../pages/page1/page1';
import { Page2 } from '../pages/page2/page2';
import { Page3 } from '../pages/page3/page3';
import { Page4 } from '../pages/page4/page4';
import { Page5 } from '../pages/page5/page5';
import { Page6 } from '../pages/page6/page6';
import { Page7 } from '../pages/page7/page7';

@NgModule({
declarations: [
MyApp,
Page1,
Page2,
Page3,
Page4,
Page5,
Page6,
Page7
],
imports: [
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
Page1,
Page2,
Page3,
Page4,
Page5,
Page6,
Page7
],
providers: []
})

export class AppModule {}
</code></pre>

<p>This is a ionic 2 Application. It Gives this error. </p>

<pre><code>EXCEPTION: Error in ./Page6 class Page6 - inline template:21:56 caused by: No component factory found for Page7
</code></pre>

<p><a href="http://i.stack.imgur.com/QAcQo.png">console error</a></p>
