I have a view like so...
<section ng-controller="ProfileController">
<div class="alert alert-danger" ng-show="!result.success">
{{result.message}}
</div>
<div class="container" ng-show="result.success">
<h1>{{result.profile.username}}</h1>
</div>
</section>
When I access the full url directly, the first div never appears unnecessarily. However, if I click a link to another route and then back I see the alert box briefly before Angular applies the service result.
How can I avoid this?