No component factory found Error in ionic2 rc0
<p>i am trying to beta11 to rc0 in ionic2.</p>
<p>one of my page has custom tag as peg the <a href="https://github.com/driftyco/ionic/blob/master/CHANGELOG.md" rel="nofollow noreferrer">changelogs</a> i was trying to update my custom tag and and the page as per the point 7 explained</p>
<blockquote>
<p>Import and add each of your custom components and pipes to the declarations array in src/app/app.module.ts.</p>
</blockquote>
<p>i have moved my componentTags.ts file to src and take a look at my <code>@NgModel</code></p>
<pre><code>@NgModule({
  declarations: [
    MyApp,
    LoginPage,
    HomePage,
    AboutUsPage,
    PrivacyPolicyPage,
    TermsOfUsePage,
    ProductSubCategoryPage,
    CategoryProductDetailsPage,
    CategoryProductDetailsInfoPage,

    //custom tags
    QuantityComponent
  ],
  imports: [
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    LoginPage,
    HomePage,
    AboutUsPage,
    PrivacyPolicyPage,
    TermsOfUsePage,
    ProductSubCategoryPage,
    CategoryProductDetailsPage,
    CategoryProductDetailsInfoPage,

    QuantityComponent
  ],
  //directives: [QuantityComponent],
  providers: [
    Products,
    Users,
    Configurator,
    Rest
  ]
</code></pre>
<p>so here is my custom component file called quantityTag.ts file</p>
<pre><code>import {Component, Input, Output, EventEmitter} from '@angular/core';

@Component({
    selector: 'counter',
    
    styles: [`

        .quantity-input {
            display:flex; align-items:center;
        }
        .quantity-input .input-width {
            width:50px;
            border: 1px solid #bdbdbd;
            padding-top: 5px;
            
        }
        
        ion-icon{
            margin-left:0px;
            height:20px;
            padding-top: 3px;
            margin-top: 5px;
            color:#64c8dc;
            
        }
        button{
            background-color:SteelBlue;
        margin-left: 0px;
        }
    `],
    
    template: `
        &lt;span class=&quot;quantity-input&quot; style=&quot;&quot;&gt;
            &lt;input type=&quot;text&quot; [(ngModel)]=&quot;counterValue&quot; class=&quot;input-width&quot;/&gt; 
            &lt;button small (click)=&quot;submit($event)&quot;&gt;&lt;ion-icon name=&quot;refresh&quot;&gt;&lt;/ion-icon&gt;&lt;/button&gt;
        &lt;/span&gt;
    `
})

export class QuantityComponent {
    
    @Input() counterValue = 0;

    @Input() cookie = null;

    @Output() counterChange = new EventEmitter();

    submit(evt){
        this.counterChange.emit({
          value: this.counterValue,
          cookie: this.cookie
        });
    }



}
</code></pre>
<p>i am having a page called shopingcart.ts in that i need this custom tag but i am getting error as below</p>
<blockquote>
<p>EXCEPTION: Error in ./HomePage class HomePage - inline template:18:27 caused by: No component factory found for ShopingcartPage</p>
<p>ORIGINAL EXCEPTION: No component factory found for ShopingcartPage</p>
</blockquote>