Mastering Development

How do I make an angular component render in other component?

I’ve made an ionic and angular project, but I’m having some difficulties making it work, here is the sourcecode, The main issues that I’m having is using the navbar component within the innsjekk and utsjekk components. I’ve added the selector and there isn’t any errors but it doesn’t render. Also in the popover component, I added a routerLink to the profile component but nothing happens when I click it.


    <ion-icon name="person-circle-outline"></ion-icon>
    <ion-button routerLink="/profil" expand="block" fill="clear" shape="round">

  <ion-item *ngIf="isAdmin">
    <ion-icon name="settings-outline"></ion-icon>
    <ion-button (click)="admin()" expand="block" fill="clear" shape="round">

    <ion-icon name="log-out-outline"></ion-icon>
    <ion-button (click)="logut()" expand="block" fill="clear" shape="round">
      <ion-label>Log ut</ion-label>


<ion-header [translucent]="true">

  <p>Hello world</p>

Leave a Reply

Your email address will not be published. Required fields are marked *