JavaScript AngularJS - filter on a specific deep property angularjs filter specific fields,angularjs filter specific property,angularjs filter

I have a javascript object and want to use angular's filter on a specific deep property but it does not seem to work.

function MyCtrl($scope, $filter)
{
 $scope.items = [
    {id:{val:1,str:'abc'}, name:'John'},
    {id:{val:2,str:'abcd'}, name:'John'},
    {id:{val:3,str:'xyz'}, name:'John'},
    {id:{val:4,str:'axcvb'}, name:'John'},
    {id:{val:5,str:'qwe'}, name:'John'}];

 $scope.items2 = $scope.items;

 $scope.$watch('search', function(param)
 {
    $scope.items = $filter('filter')($scope.items2, {id:{val:param}},false);
 });
};

here is the fiddle http://jsfiddle.net/Lhhetazm/2/

If i just say,

$scope.items = $filter('filter')($scope.items2, {id:param},false);

Then it works but it searches the whole object which is not what i want, and i want it to work for partial searchs so i set the exact match flag to false

Answer:1

I am trying to develope a e-learning site for kids. It contains an excercise to select the right answer among the given four options,by seeing the clue image. When the kid selects the right answer,the ...

I am trying to develope a e-learning site for kids. It contains an excercise to select the right answer among the given four options,by seeing the clue image. When the kid selects the right answer,the ...

  1. javascript validation error message display
  2. javascript validation error
  3. javascript validation error in eclipse
  4. javascript validation error messages
  5. javascript validation error class
  6. javascript throw validation error
  7. javascript add validation error
  8. javascript remove validation error
  9. javascript show validation error
  10. javascript form validation error div
  11. javascript form validation error messages
  12. javascript html validation error
  13. javascript internal validation error
  14. javascript checkbox validation error
  15. javascript validation remove error message
  16. javascript input error validation
  17. javascript focus on validation error
  18. javascript show validation error message
  19. javascript custom validation error message
  20. javascript input validation error message

I'm using Cors requests to communicate between my client and server placed in two different domain. I configurate my apache http server this way it's using SSL : //with AJAX withCredentials=true (...

I'm using Cors requests to communicate between my client and server placed in two different domain. I configurate my apache http server this way it's using SSL : //with AJAX withCredentials=true (...

  1. cors request method options
  2. cors access-control-request-method
  3. invalid cors request post method

Im using dropzonejs to upload photos to my website. The problem is, when I click dropzone to upload, it won't show 'Gallery' as an option as seen in this image : How to add Gallery as an option?

Im using dropzonejs to upload photos to my website. The problem is, when I click dropzone to upload, it won't show 'Gallery' as an option as seen in this image : How to add Gallery as an option?

  1. upload photo from iphone
  2. upload photo from iphone to pc
  3. upload photo from iphone to icloud
  4. upload photo from phone to pc
  5. upload photo from desktop to instagram
  6. upload photo from computer to iphone
  7. upload photo from pc to instagram
  8. upload photo from iphone to google drive
  9. upload photo from iphone to dropbox
  10. upload photo from pc to icloud
  11. upload photo from computer to instagram
  12. upload photo from iphone to facebook
  13. upload photo from mac to iphone
  14. upload photo from camera roll to snapchat
  15. upload photo from instagram web
  16. upload photo from gallery android studio
  17. upload photo from iphone to laptop
  18. upload photo from mac to instagram
  19. upload photo from phone to laptop
  20. upload photo from mac

I am trying to implement a chat application using the codeigniter framework but on form submit, the form data does not get submitted and the submit button becomes disabled. when I check on the ...

I am trying to implement a chat application using the codeigniter framework but on form submit, the form data does not get submitted and the submit button becomes disabled. when I check on the ...

  1. codeigniter chat application github
  2. codeigniter chat application source code
  3. codeigniter chat application
  4. codeigniter chat application example
  5. codeigniter chat app
  6. php codeigniter chat application
  7. codeigniter realtime chat application with jquery and ajax