angular - Ionic 2 - Custom component not rendering as expected -


i trying build feedback input component, works great angular 2 apps when try use ionic component ng-content input doesn't render should. i've imported ionic_directives mentioned in other posts.

using angular 2.0.0-rc.1 , ionic 2.0.0-beta.7

custom component (simplified):

@component({   selector: 'app-feedback',   directives: [ionic_directives],   template: `    <ng-content></ng-content>   <span>should render this..</span>    ` }) export class appfeedback {  } 

usage:

@page({ ... directives: [appfeedback], template: `      <ion-content>         <form (ngsubmit)="attemptlogin()" [ngformmodel]="form">             <ion-item primary>                 <ion-label floating>usuário</ion-label>                 <app-feedback>                     <ion-input [(ngmodel)]="cred.username"                          [ngformcontrol]="form.controls.email" type="email" ></ion-input>                 </app-feedback>             </ion-item>                 </form>     </ion-content>  ` }) export class loginpage { ... } 

this how screen renders:

no error shown on console


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo