#Having issue with the Onclick event and the link is not working when clicked on the mobile screen

15 messages · Page 1 of 1 (latest)

tribal kraken
#

When clicked on the Add to New Card Button , the pop is not showing and the function is not being called

While it is working on the Web View of it
<button
ng-click="sendToAnalytics().userTriggeredEvent({
eventCategory:'AppinApp-PaymentMethodsPage-ContinueButton',
eventAction:'click',
eventName:'When the user clicks on Continue button in the Payment Methods Page'
});
proceedToMobileCheckout(selectedCard);
$event.preventDefault();
$event.stopPropagation();"
type="button"
class="btn btn-primary appinapp-font-size prescription-label mt20 mb20"
>

paper oracle
#

it's angular.js ? not angular

tribal kraken
paper oracle
tribal kraken
#

So to clarify, your code is AngularJS (1.x).

paper oracle
#

ng-click="alert('toto')"

works ?

tribal kraken
#

let me check

tribal kraken
paper oracle
#

<button ng-click="myFunc()">TEST</button>

angular.module('myApp', [])
.controller('myCtrl', ['$scope', function($scope) {

$scope.myFunc = function() {
    alert('toto');
};

}]);

#

and this ?

tribal kraken
#

can I share my screen over a call to discuss and you can possibly help with this one

paper oracle
#
#

i don't known angularjs... i know angular

tribal kraken
#

got it