Came to say THANK YOU, this is very clever. On Monday, December 10, 2012 3:11:11 PM UTC-8, Witold Szczerba wrote: > > You can try this: > <div ng-switch on="!!foo.bar"> > <div ng-switch-when="true"> > ... > </div> > <div ng-switch-default>...</div> > </div> > > Regards, > Witold Szczerba > --- > Sent from my mobile phone. > On Dec 10, 2012 8:28 PM, <[email protected] <javascript:>> wrote: > >> Is something like this possible in angularjs? >> >> <div ng-switch-on="foo.bar"> >> <div ng-switch-when="{{!null}}"> >> //when not null, display this div >> </div> >> <div ng-switch-default> >> //by default, display an empty div >> </div> >> </div> >> >> What do I need to set ng-switch-when to in order to produce the desired >> behavior? >> >> Thanks! >> >> Arsen. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "AngularJS" group. >> To post to this group, send email to [email protected] >> <javascript:>. >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> Visit this group at http://groups.google.com/group/angular?hl=en-US. >> >> >> >
-- 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.
