Search code examples
angularionic-frameworkswiper.jsionic5

Is there a way to move components between components using a swiper in Ionic?


Below is an example site. https://swiperjs.com/demos/020-navigation/core.html

Is it possible to create a slide from a different component.html other than the slide format that works on the same component.html?

For example, slide1 is a.component.html and slide2 is b.component.html.

If not, is it possible to add a side-flip animation in Ionic to move it to another component?


Solution

  • That's not possible, you have to have ng-templates (or images, or whatever) in the same component.

    As for your second question, about the side-flip, you mean transitions?

    Here's a nice guide about flip transition (and not only): https://www.youtube.com/watch?v=4axQp0wfMtU&ab_channel=SimonGrimm