So i am using MaterializeCSS, and have this piece of code:
<select>
<option value="" disabled selected>Jump To Season</option>
<option option-item ng-repeat="item in series.seasons" value="{{item.id}}">
{{item.name}}
</option>
</select>
And im using this directive:
.directive("optionItem", [function () {
return {
restrict: 'A',
link: function (scope, element) {
if (scope.$last) {
$('select').material_select();
}
}
};
}]);
Now the elements do repeat as many times as necessary, but instead of displaying the $scope.item.name value it is just displaying {{item.name}} as plain text, not as an expression value. How do i overcome this setback? I tried using Material Angular md-select but i also experienced issues with it, every time i clicked the select i can't click on anything in the webpage and nothing happens.
IMPORTANT NOTE: The series.seasons array is fetched via ajax call.