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…

Would really appreciate some help!