Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Change view clicking on a ion-option-button

$
0
0

I reply after some time ...

I added code to prevent the event bubbling but no way to stop it :frowning:

  <ion-item class="item-remove-animate item-icon-right item-button-right" 
	ng-repeat="custo in customers" type="item-text-wrap" href="#/tab/customers/{{custo['customerId']}}">
    <span style='font-size:170%; color:blue'>{{$index+1}}</span>
  <span>Client: <b>{{custo["clientString"]}}</b></span>
  <span>id: <b>{{custo["customerId"]}}</b> - Nome contatto: '<b>{{custo["contact"]}}</b>' </span>
  <button class="button button-calm" ion-stop-event="click" ng-click="license(custo[':customerId'], $event); $event.stopPropagation(); ">
      License        </button>

and also in the controller code:

$scope.license = function(id, $event){
 console.log('CustomersCtrl.license customerId:'+id);
 $state.go('tab.licenses', { currentCustId:id } );
 if ($event)$event.stopPropagation();
};

Where I'm doing wrong???


Viewing all articles
Browse latest Browse all 228595

Trending Articles