Consider the html is
<div ng-controller="parentCtrl">
//some content
<div ng-controller="childCtrl">
<div ng-show = "mycommonscopevar">show my message </div>
//some content
</div>
</div>
in my parent controller, i am setting "mycommonscopevar" as false initially and then in some function i am setting mycommonscopevar as true. When i click on a tab , my child controller will get called , now i need to set that mycommonscopevar as false again. I mean switching from one controller to another the scope variable has to be reset. Is this possible? Could anyone help me on this. Thanks in advance.