How to redirect the user on change of the selection?
html code
<select name="annee" ng-model="annee" ng-change="selectAnnee()">
<option value="2000" ng-selected="2000==2014">2012</option>
<option value="2001" ng-selected="2001==2014">2013</option>
<option value="2002" ng-selected="2002==2014">2014</option>
</select>
js code
this.selectAnnee = function(){
window.location.href=link.substring(link.indexOf('/'),link.lastIndexOf('/')) + '/fiche?type=' + this.type + '&annee=' + $scope.annee;
}
Thanks in advance!