خرید بک لینک

Vote count: 0

I have a list of strings with years on it, like:

$scope.years = ["2001", "2002", "2003", ...];

I'm trying to render it on a page inside a select tag, but angular keeps breaking the code, rendering the elements outside the tag.

I have the following in the page:

<select>
    <option value="" disabled selected>----</option>
    <option ng-repeat="y in years" value="{!y!}">{!y!}</option>
</select>

I does render, but all the option tags that are generated, are outside the select tag. Am I doing something wrong here?

Edit: using AngularJS 1.5.3

asked 48 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 27 فروردين 1395 ساعت: 7:27

صفحه بندی