Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70443

Ionic v4: Main attribute in router-outlet not documented

$
0
0

@suben wrote:

I’ve used the ionic menu in my app–which in the first place, didn’t swipe–so I’ve read some of the documentation of Ionic and saw, that they added an attribute main to the ionic-router-outlet.

This also just works if the menu is not encapsulated into it’s own component. I have to write it down among the router-outlet in the app.component.html

What makes me curious is, that this property “main” on the router-outlet component is not documented at all. At least I didn’t find it. https://ionicframework.com/docs/api/router-outlet

Also, here is the example, where the property has been used: https://ionicframework.com/docs/api/menu (which looks like this: <ionic-router-outlet main></ionic-router-outlet>

Last but not least I want to apologize if I overlooked something–this is my first Ionic app ever-- and I want to thank anybody who helps me solving this problem

Kind Regards

EDIT: It’s not worthy at all but I forgot to post my menu code. It’s really nothing special and almost 1:1 copied.

<ion-menu menuId="sideMenu" swipeGesture="true">
  <ion-header>
    <ion-toolbar color="primary">
      <ion-button slot="start">
        <img alt="logo" src="../../assets/logo.svg">
      </ion-button>
      <ion-title>
        app name
      </ion-title>
    </ion-toolbar>
  </ion-header>
  <ion-content>
    <ion-list>
      <ion-item>Attack</ion-item>
      <ion-item>Defence</ion-item>
      <ion-item>Feedback</ion-item>
    </ion-list>
  </ion-content>
</ion-menu>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>