Hi, I have the following popup:
$ionicPopup.show({
title: "Find your friends...",
template: '<input type="text" ng-model="searchTerm">',
scope: $scope,
buttons: [
{
text: "Search",
onTap: function(e) {
console.log($scope.searchTerm);
//Do other stuff here...
}
}
]
});
My problem is that the $scope.searchTerm is showing as undefined in the above example. Have I made an error in my code? Or have I misunderstood something more fundamental?
Thanks,
David.