I want to hide the navBar when the route is "/"
I succeeded to hide/show the navbar but the problem is that, when the navbar is hidden, the "app-body" div has 50px of padding top (where should be the navbar)
This is my html code
<body ng-app="myApp" ng-controller="MainController" ui-prevent-touchmove-defaults>
<div class="app">
<!-- Navbars -->
<div ng-hide="isActive('/')" ng-controller="NavBarController">
<div class="navbar navbar-app navbar-absolute-top">
<div class="navbar-brand navbar-brand-center" ui-yield-to="title">
Mobile Angular UI
</div>
<div class="btn-group pull-left">
<div ui-toggle="uiSidebarLeft" class="btn sidebar-toggle">
<i class="fa fa-bars"></i> Menu
</div>
</div>
<div class="btn-group pull-right" ui-yield-to="navbarAction">
<div ui-toggle="uiSidebarRight" class="btn">
<i class="fa fa-comment"></i> Chat
</div>
</div>
</div>
</div>
<!-- App Body -->
<div class="app-body">
<ng-view class="app-content"></ng-view>
</div>
</div>
</body>
This image shows the layout when the navbar is visible

This image shows the layout when the navbar is hidden
As you can see in the second image there is a grey section at the top. Am I dooing something wrong?
Thank you

ui-view.