Hi,
suddenly a strange issue occured: I have the following controller:
JS:
function MyController($scope, $http) {
$scope.challenges = []; // this are loaded via $http
$scope.selectChallenge = function (challenge) {
if (challenge === null) {
$scope.selectedChallengeId = null;
return;
}
$scope.selectedChallengeId = challenge.Id;
}
// load the items
$http({
url: 'Manager/Find/?t=' + new Date().getTime(),
method: "GET",
params: {
challengeid: $scope.selectedChallengeId
}
})
.success(function (data) {
$scope.challenges = data.challenges;
});
}
HTML:
<select class="input-medium">
<option data-ng-click="selectChallenge(null)">-select challenge-</option>
<option data-ng-repeat="challenge in challenges"
data-ng-selected="challenge.Id == selectedChallengeId"
data-ng-click="selectChallenge(challenge)">{{challenge.Name}}</option>
</select>
ISSUE: in FF & IE the code is working as excpeted, when clicking on one option of the select, the selectChallenge function fires. BUT in Chrome (the latest, v25) nothing happens, the function is NOT triggered!
Please help me, this issue is very urgent for an app almost ready to deploy in production!
Thanks
Marcello