I have a json array formatted like this:
share.videos = [
{
sources: [
{src: $sce.trustAsResourceUrl('http://example.com/Inner_Strength.mp4'), type: 'video/mp4'},
{src: $sce.trustAsResourceUrl('http://example.com/Inner_Strength.webm'), type: 'video/webm'},
{src: $sce.trustAsResourceUrl('http://example.com/Inner_Strength.ogv'), type: 'video/ogg'}
],
info: [
{
'title': 'Inner Strength',
'videoFile': 'Inner_Strength_HD.mp4'
}
]
}]
I would like to use ng-options to get the title from info.title
ng-options="i.info.title for i in share.videos"
Gives me blank labels in my select element on my DOM, but with the right amount of options.
Is it possible to use ng-options with an array formatted like this?