NavParams has been deprecated in favor of using Angular’s input API

Discussão em 'Angular' iniciado por Ali Hamidi, Outubro 16, 2024.

  1. Ali Hamidi

    Ali Hamidi Guest

    I am getting this message in the console:


    [Ionic Warning]: NavParams has been deprecated in favor of using Angular’s input API. Developers should migrate to either the @Input decorator or the Signals-based input API.
    ​

    I searched everywhere and there is no working sample of using @Input decorator instead of NavParams to pass data to the modal component.

    Edit: I want to pass data to the modal component using componentProps of ionic ModalController.

    Continue reading...

Compartilhe esta Página