how can i get input value to send another page?
can i get the value from id?
In which Ionic version are you developing your project?
im using ionic version4
Can you please give more information about what you’re trying to do?
That depends on weather you are trying to access an object or an Id.
If you are trying to access an id:
- the best way is to pass it over the url and get it through
ActivatedRoute
.
if you are trying to access the whole form, there are two possible scenarios:
- that you have it on a database:
- you should pass the id of the object you just created through the url, and get it from the database.
- You don’t have it on a database:
-The best way of accessing this is through@Input
, but I’m not sure how to do it between pages.
If it’s a single value, send in GET parameter. If it’s more than that, store it in ionic storage and retrieve them in your another page.