I'm new to ionic and angular and I want to create a custom element directive, like:
<radio-group
value="'a'"
values="{{['a', 'b', 'c']}}"
on-value-change="onChange()"
radio-group-name="'Values'"
></radio-group>
function onChange(newValue){}
so it's pretty similar to example on ionic site, but I need it to generate link
<a href="#/radio-group-page">Values</a>
by clicking it we are going on a new page with values list and 'Values' title. When we select new item, on-value-change
event fires.
Is it possible? I don't know how to bind this functionality between pages.
I dont want to create new template and controller for each radio-group.
on-value-change
event fires on page 1. – Artem Svirskyisection 1
is just a header name. I gave a sample in order to understand your question correctly – Smit