I'm trying to populate a select field with content from an array. I'm confused as to what exactly my "model" is.
I'm looking to access content from
ng-options="content.title.name in content.title.name as content in contents">
var ctrl = this
> 0: ContentViewModel
> title: Object // Each numbered array object has similar contents
> 1: ContentViewModel
> 2: ContentViewModel
> 3: ContentViewModel
Your 'model' is a separate variable that will contain the selected value of your select menu - set it to something like
ng-options parameters should look like this:
ng-options="content.title.name for content in ctrl.contents"
For more info, refer to this example - checkout both the html and js in app.js.