Ionic equivalent of this?
$scope.rollDown = function(e) {
var x = $this.getAttribute(“id”);
}
Ionic equivalent of this?
$scope.rollDown = function(e) {
var x = $this.getAttribute(“id”);
}
<button ng-click="rollDown()">clicker</button>
$scope.rollDown = function($event) {
var element = $event.target;
}
Controller should have event aswell?