Hi,
I am new to angularjs.
<P>
I need to display welcome section when userid is empty or 0, if userid
exists display home section, i have seperated these sections with different
div's and these should be in same page.<br/><br/>
when userid is 0 or '', it is first showing and hiding home section , then
welcome section is displaying.
when userid exists, it first showing and hiding welcome section , then home
section is displaying.
</P>
</br>
I am not sure why it is showing and hiding unmatching section first.
I have been searching on internet from the past couple of days, but didn't
get the solution.
below is the sample code.
<div data-ng-switch="vm.userid">
<div data-ng-switch-when="">
Welcome page data
</div>
<div data-ng-switch-when="0" >
Welcome page data
</div>
<div class="container-fluid main" data-ng-switch-default>
Home page data
</div>
</div>
Any help is greatly appreciated!
--
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.