How to make a function move out of template?

Using Angular JS w/ Meteor
I am not quite sure how or if you can do this. Essentially I have a modal (button morph) in its own template, and once I click a button in it, I would like to add data from that template to the main web page.

Edit: Here is what I want to actually do…
http://stackoverflow.com/questions/41094431/function-takes-data-in-template-to-main-template-in-meteor-w-angularjs

Would really appreciate some help!