<body ng-app="mySettings">
<div ng-controller="appSettingsCtrl">
<h3>Inactivity Options:</h3>
This gives mm,ss,hh as option value for select combobox.<br>
<select ng-model="inactivity_settings.time_format" ng-options="opt as opt.label for opt in timeFormatTemplates track by opt.value" ng-change="changedTimeFormat(inactivity_settings.time_format)"></select>
The value selected is {{ inactivity_settings.time_format.value }}
<br><br>
<h3>Activity Options:</h3>
This gives 0,1,2 as option value for select combobox. <br>
<select ng-model="activity_settings.time_format" ng-options="opt as opt.label for opt in timeFormatTemplates" ng-change="changedTimeFormat(activity_settings.time_format)"></select>
The value selected is {{ activity_settings.time_format.value }}
<br><br>
As you can see, the value generated by both are same.
</div>
</body>