<div class="first pull-right h-btn" data-ng-if="user" data-ng-click="viewModel.showLogout = !viewModel.showLogout">
<div class="second" data-ng-if="viewModel.showLogout" data-ng-click="logout()">
<a href="javascript:void(0)">Log out</a>
</div>
<div ng-app>
<div ng-click="Ctrl.showLogout = !Ctrl.showLogout">Певый div (Ctrl.showLogout = {{Ctrl.showLogout}})</div>
<div ng-if="!Ctrl.showLogout" class="second">Log out</div>
</div>