JSON:
streams = [{ id: 0,
codec_type: 'video',
content: '1920x1040 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10' },
{ id: 1,
codec_type: 'audio',
content: '5.1(side) - cze - undefined' },
{ id: 2,
codec_type: 'audio',
content: '5.1(side) - eng - undefined' },
{ id: 3, codec_type: 'subtitle', content: 'cze - Czech' },
{ id: 4, codec_type: 'subtitle', content: 'eng - English' }];
Angular HTML markup:
<md-input-container ng-repeat="stream in streams">
<label>{{stream.codec_type}}</label>
<md-select ng-model="stream">
<md-option value="{{stream.id}}">{{stream.content}}</md-option>
</md-select>
</md-input-container>
Hi, I need find duplicate string on JSON and repeat only ONE select with many options under this (codec_type) duplicate string. Please have you any idea to do this? Thank you
!!! UPDATE !!!
I must redesign JSON and work with objects separatly or something like that