ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

$ionicPopup click an item in popup template

Open Jaware opened this issue 11 years ago • 2 comments

template code:

                     <a  class="input-label" ng-bind="shop.des"></a>                
              <i class="button icon button-icon ion-plus" ng-click="shop.add()"></i>

controller code: $scope.shop.add= function() { alert(123); } the method can not work, "ng-bind=shop.des" binds normal,however the ng-click not work, is this a bug ?or ionic does not support method in $ionicPopup .

Jaware avatar Mar 10 '15 13:03 Jaware

You should use a button element instead. I'd also recommend asking on the forum.

Ionitron avatar Mar 10 '15 14:03 Ionitron

thanks

Jaware avatar Mar 11 '15 01:03 Jaware