Here is a HTML template that allows the user to select a language:
<div class="btn-group" uib-dropdown>
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" uib-dropdown-toggle>
<span class="lang-sm lang-lbl-full" lang="en"></span><span class="caret logincaret"></span>
</button>
<ul class="dropdown-menu" role="menu" uib-dropdown-menu >
<li><span class="lang-sm lang-lbl-full" lang="hu"></span></li>
<li><span class="lang-sm lang-lbl-full" lang="ru"></span></li>
</ul>
</div>
Is there a way to bind the selected option's "lang" attribute to the $scope of the controller?
UPDATE:
You can see the desired result here