Reusing components in other components in Nativescript Angular


I want to use a component within another component. Something like this:


I import user component within about component:

import { UserComponent } from "./../user/user.component";

My user component:

<StackLayout orientation="horizontal"
    <Label text="This is a user component. We want to use it into another component."  class="action-label"></Label>

But it doesn’t show that part. (I mean <user></user>)

NOTE: I’m using router.
Any idea?


I was forgotten to add the UserComponent in @NgModule.