java - Angular 4.2.6 CLI generated component is never rendered -
i started new jhipster project. have used angular 2 before can't figure out why none of new components showing.
using angular v4.2.6
i did following:
- create application jhipster
- create new component using cli
result:
rahan.component.ts
import { component, oninit } '@angular/core'; @component({ selector: 'jhi-rahan', templateurl: './rahan.component.html', styles: [] }) export class rahancomponent implements oninit { constructor() { } ngoninit() { } }
rahan.component.html
<p> rahan works! </p>
home.component.html
<div class="row"> <jhi-rahan></jhi-rahan> </div>
app.module.ts
declarations: [ ..., rahancomponent
i can see if inspect other elements this: <jhi-file-upload></jhi-file-upload>
has no child elements , it's never rendered.
i'm sure i'm missing something. idea what?
Comments
Post a Comment