angularjs element manipulation

19 Views Asked by At

I am confused about angularjs manipulation.

How come:

   angular.element("#elementID").is(':visible') ;   // works
   angular.element("#elementID").slideUp() ;   // works
   angular.element("#elementID").style.opacity = 1 ; // **doesn't work**

   angular.element("#elementID")[0].style.opacity = 1 ;   // works
   angular.element("#elementID").css('opacity' : 1) ;   // **doesn't work**

I have a Cordova/Ionic app, jquery is installed. I feel the .css(field : value) should be working.

The various methods keep tripping me up. Can someone shed some light on this for me?

0

There are 0 best solutions below