i got a nice repeat that contains one column that is connected with a foreign key element so it looks like this that is want to extend with a search.
<input type="text" ng-model="search" placeholder="Search On Studio Name"> <div ng-repeat="cd in cds | filter : search"> <div>{{cd.colorcode;}}</div> <div>{{cd.studio[0].name}}</div> </div> The problem is i don't get the filtered result on the studio name when i try to add as example:
| filter : search.{cd.studio[0].name} How do i approach this second connected foreign key column?
As a separate question, i would like to filter the results as well with a button click as such (if/else) so if i press the button i will get all the "cd.studio[0].name" filtered directly with the first letter A, with a button like this
<button ng-click="letter='[A]'">A</button> | filter : search.{cd.studio[0].name} OR letter: StartsWith