Ion-menu in custom component with contentId

Hi there,

I’m using ionic 5 and I want to use contentId with ion-router-outlet’s id attribute.
However I put my ion-menu that has the contentId inside of a custom component.

How can I expose this contentId to the app’s ion-router-outlet?

I currently am getting the following two error messages in my console:

Can’t bind to ‘routerLink’ since it isn’t a known property of ‘div’.
Menu: must have a “content” element to listen for drag events on.

1 Like

This helped me fix the issue I was having