I was using $cordovaToast but I’ve been forced to switch to something non-native in order to embed a link with a click target in a status message. Basically, my use case is displaying a “action completed | undo” option similar to what’s in Google’s Gmail app (see https://github.com/soarcn/UndoBar) Has anyone else tried this? I basically just modified the css to bottom-position the toast and restyled it a bit.
My issue right now is that I can’t seem to get an ng-click inside the template wired up to work with a function on the local scope. Here’s my code, note the scope option on show(). The function in question is never called:
$ionicLoading.show({ templateUrl: 'templates/ok-undo-action.html', scope: $scope, noBackdrop: true, duration: 2000 });
And the corresponding template:
<span>
Something happened
<a ng-click="undo()">
<i class="icon ionicon ion-arrow-return-left"></i>
Undo
</a>
</span>
Any suggestions very much appreciated.