Send data to another tab through the "ion-option-button"?

Asked

Viewed 214 times

0

How can I send data from one tab to another tab by clicking on the "ion-option-button" component? This target tab will have a form, the intention is to edit the data contained in a "". Data for display I managed to do through the:

`<ion-item class="item-remove-animate item-avatar item-icon-right" ng-repeat="chat in chats" type="item-text-wrap" href="#/tab/chats/{{chat.id}}">`
  • you can do this by getting, passing the data in the url parameter, and retrieving the content, or else via manipulated cookies, but which one would have to set up a routine to record and retrieve this cookie

1 answer

0


I have done this before passing parameters on Urls, but experience has shown me that it is better to assemble a Factory and record the data there. It gets more organized and centralized. But it also depends on the nature of your data and such.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.