You may be served well also by the ui-router project. That's what I use. I
have a general app layout with header / body / footer, and then I can put
one menubar or another into header depending on the current app state. I
put different body templates into body (three column view, split,
navbar-left, etc) again depending on body state, and I put mostly static
disclaimers and things into footer.

You can also do an ng-include inside an ng-if/show directive that would
import different menus based on app state if you're not interested in using
ui-router.

e


On Wed, Jul 30, 2014 at 9:17 AM, Leonan Luppi <[email protected]>
wrote:

> I tried to use ng-show but it doesn't update valeu in DOM I think because
> it dont hide and show.. ng-if I'll try
>
> Em quarta-feira, 30 de julho de 2014 12h25min11s UTC-3, Eric Eslinger
> escreveu:
>>
>> check out ng-show and ng-if directives.
>>
>>
>> On Wed, Jul 30, 2014 at 7:03 AM, Leonan Luppi <[email protected]>
>> wrote:
>>
>>> Hello Guys,
>>>
>>> I have a java web application  built with angularJS. So I've a
>>> index.html, inside I've create a <div ng-view></div> to display my routes,
>>> but inside index.html I always have a menu (to show only with the user is
>>> logged) and other things.. So I've a login.html to display my signin page,
>>> when I click to logIn I need to show my menu(inside index.html) and hide
>>> this when I'm back to signin page.. Someone has any idea how to do this?
>>>
>>>  --
>>> 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.
>>>
>>
>>  --
> 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.
>

-- 
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