I am trying to think angular but am not sure how to assign a value to an element on load like in jQuery.
I have the following tabs, all of which become 'selected' on click. How do I select one on load so that one tab is 'selected' without the user having to do anything?
<ul class="nav nav-tabs">
<li ng-class="{active: selected == 1}">
<a href="" ng-click="selected=1">Overview</a>
</li>
<li ng-class="{active: selected == 2}">
<a href="" ng-click="selected=2">My Properties</a>
</li>
<li ng-class="{active: selected == 3}">
<a href="" ng-click="selected=3">Potential Properties</a>
</li>
</ul>
<div ng-if="selected == 1">
<div ng-include=" 'views/dash/_overview.html' "></div>
</div>
<div ng-if="selected == 2">
<div ng-include=" 'views/dash/_myproperties.html' "></div>
</div>
<div ng-if="selected == 3">
<div ng-include=" 'views/dash/_buyproperties.html' "></div>
</div>