Skip to content

Instantly share code, notes, and snippets.

@taboularasa
Last active August 29, 2015 14:25
Show Gist options
  • Save taboularasa/dcbf95daf2c61c38b607 to your computer and use it in GitHub Desktop.
Save taboularasa/dcbf95daf2c61c38b607 to your computer and use it in GitHub Desktop.
cascading selects in angular
<div ng-controller="TeacherReportsController">
<select ng-options="element.label for element in model" ng-model="firstOption"></select>
<select ng-options="child.label for child in firstOption.children" ng-model="secondOption"></select>
<select ng-options="child.label for child in secondOption.children" ng-model="thirdOption"></select>
{{thirdOption.data}}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment