Ich versuche, das Dropdown auf aktuellen Monat, der Oktober ist, aber es funktioniert nicht, irgendwelche Hinweise Jungs?ng-init in angularjs funktionierte nicht für mich
http://plnkr.co/edit/qtPvCy4phNQW6I6IPQyr?p=preview
app.controller('MainCtrl', function($scope) {
var d = new Date();
var month = new Array();
var this_year = d.getFullYear();
month[0] = "January " + this_year;
month[1] = "February " + this_year;
month[2] = "March " + this_year;
month[3] = "April " + this_year;
month[4] = "May " + this_year;
month[5] = "June " + this_year;
month[6] = "July " + this_year;
month[7] = "August " + this_year;
month[8] = "September " + this_year;
month[9] = "October " + this_year;
month[10] = "November " + this_year;
month[11] = "December " + this_year;
$scope.months = month;
$scope.this_month = month[d.getMonth()] + " " + this_year; // won't work?
});