Hi Sonal,

Sure you can use css to show/hide stuff using angular.

   function myShowThingie() {
      var DDO = {
         restrict: 'A'
      };
      DDO.link = function(scope, el, attrs) {
         scope.$watch(attrs['myShowThingie'], function(bool) {
            if (typeof bool === 'undefined') {
               return;
            }
            if (bool) {
               el[0].style.visibility = 'hidden';
            } else {
               el[0].style.visibility = 'visible';
            }

         })
      };
      return DDO
   }

working sample here on plunk 
<http://plnkr.co/edit/mPKSVM40aHDWl9y33TYS?p=preview>

With kind regards
Sander
​

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to