I've created a multi-button screen much like this:
When I click on a button it would have an id and this id I get on its route, I did with list already, but several buttons passing parameter I still can not.
My question is how to pass this button id to another screen.
Warnings.html
<ion-view view-title="Avisos">
<ion-content style="background-color: #FF4500; background-size: cover;
background-position: center;">
<div class="row icon-row">
<div class="col text-center">
<button class="botao button button-positive" id="1">Icon</button>
<br>mais informaçoes
</div>
<div class="col text-center">
<button class="botao button button-positive" id="2">Icon</button>
<br>Avisos
</div>
<div class="col text-center ">
<button class="botao button button-positive" id="3">Icon</button>
<br>Contato
</div>
</div>
</ion-content>
</ion-view>
In this part is where I get the id, How can I receive the selected button id in this part? and pass it on side.id?
site.html
<ion-view view-title="Site">
<ion-content>
<ion-list>
<ion-item ng-repeat="site in sites" href="#/app/conteudoDoSite/{{site.id}}">
<span ng-bind-html="site.title"></span><span class="badge badge-assertive">{{site.post_count}}</span>
</ion-item>
</ion-list>
</ion-content>
</ion-view>
how to pass parameter to another screen with ionic1 and angular1? Can anybody help me? what I am trying to do is that when the user clicks one of these buttons the id is passed.