# Data Transfer: From One template to another template

**URL:** <https://forum.ionicframework.com/t/data-transfer-from-one-template-to-another-template/25022>\
**Category:** ionic-v1\
**Created:** [May 18, 2015, 3:01am UTC](https://forum.ionicframework.com/t/data-transfer-from-one-template-to-another-template/25022 "2015-05-18T03:01:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajmp](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@rajmp](https://forum.ionicframework.com/u/rajmp)\
**Post date:** [May 18, 2015, 3:01am UTC](https://forum.ionicframework.com/t/data-transfer-from-one-template-to-another-template/25022/1 "2015-05-18T03:01:01Z")

</div>

Hi,

In my project i need to transfer data from one page to another page.

In Home page i have a button to select the product and the product details will be in another page, if my user select any of the product from second page it have to display it in first page. Need help to set the data in second page and get it in first page

---

<div class="post-metadata">

**Author:** ![encodedmirko](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/encodedmirko/32/84116_2.png) [@encodedmirko](https://forum.ionicframework.com/u/encodedmirko)\
**Post date:** [May 18, 2015, 7:48pm UTC](https://forum.ionicframework.com/t/data-transfer-from-one-template-to-another-template/25022/2 "2015-05-18T19:48:08Z")

</div>

Create an Angular [service](https://docs.angularjs.org/guide/services) that holds the data, then have the controllers for each view depend on that shared service.
