please change your code
angular.module('todo', ['ionic'])
.controller('TodoCtrl', function($scope) {
{
// Use our scope for the scope of the modal to keep it simple
scope: $scope
}
});
$scope.showAlert = function() {
alert("show");
};
to
angular.module('todo', ['ionic'])
.controller('TodoCtrl', function($scope) {
{
// Use our scope for the scope of the modal to keep it simple
$scope.showAlert = function() {
alert("show");
};
}
});