You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all this is the cool fab menu
I want event manipulation on click events <ion-floating-menu> <ion-floating-item icon="ion-contact" onclick="DoSomething()"></ion-floating-item></ion-floating-menu>
i wrote a external script function DoSomething() { alert("in my Logic") }
but my function not invoked .i also tried ng-click with angular
any helps how can i envoke click ?
The text was updated successfully, but these errors were encountered:
Use ng-click instead of onclick and make sure you are declaring the function as a scope function : $scope.DoSomething = function () { alert ("in my logic"); } or even $rootScope.DoSomething should work. Also declare it in the same controller that will access the page where the ion-floating-menu is kept. Do let me know if it helped.
@ng22792 Hey, I've tried as you explained but I got an error saying : v2.last is not a function
I am bundling the doc with browserify. Have an idea of the source of the problem?
Thanks ;-)
First of all this is the cool fab menu
I want event manipulation on click events
<ion-floating-menu> <ion-floating-item icon="ion-contact" onclick="DoSomething()"></ion-floating-item></ion-floating-menu>
i wrote a external script
function DoSomething() { alert("in my Logic") }
but my function not invoked .i also tried ng-click with angular
any helps how can i envoke click ?
The text was updated successfully, but these errors were encountered: