Combine static and dynamic options
nasrinmithila opened this issue · 3 comments
nasrinmithila commented
Combining static and dynamic options throws an error: 'Cannot read property 'option' of undefined'.
<ol
ng-model="search"
class="nya-bs-select"
multiple
>
<li
class="nya-bs-option" data-value="">
<a>- Clear -</a>
</li>
<li nya-bs-option="option in options">
<a>
{{option.name}}
</a>
</li>
</ol>
lordfriend commented
Combining static and dynamic options is not supported
nasrinmithila commented
Thanks for your reply.
mrsus commented
@nasrinmithila I tried ng-repeat and it worked.
<ol
ng-model="search"
class="nya-bs-select"
multiple
>
<li
class="nya-bs-option" data-value="">
<a>- Clear -</a>
</li>
<li class="nya-bs-option" ng-repeat="option in options" data-value="option.name">
<a>
{{option.name}}
</a>
</li>
</ol>