Skip to content

Instantly share code, notes, and snippets.

@steinbring
Created August 18, 2014 21:15
Show Gist options
  • Save steinbring/121f10acb4eb8a6ca30f to your computer and use it in GitHub Desktop.
Save steinbring/121f10acb4eb8a6ca30f to your computer and use it in GitHub Desktop.
How to populate a select box with the contents of the array $storage.notes. You can reference it in other form elements as {{savedNote}}.
<select ng-model="savedNote" ng-options="n.title for n in $storage.notes" id="selectedNote">
<option value="">-- Saved Notes --</option>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment