I have a single page using Angular and the layout is as follows:
https://i.sstatic.net/XvPQO.png
When I click on a tab, for example "Services", the services content is displayed below the tabs.
Below is the relevant code snippet:
<a href ng-click="tab.setTab(4)">Services</a>
....
<perfil-content ng-show="tab.isSet(2)"></perfil-content>
<brand-content ng-show="tab.isSet(3)"></brand-content>
<service-content ng-show="tab.isSet(4)"></service-content>
All of this is within a single route, for example: http://localhost:9000/#/
Now, what I want is that when http://localhost:9000/#/services is accessed, the services content should be displayed just like when it is clicked.
I tried the following code:
<service-content ng-show="location.hash == '#/services'">
but it does not work properly.
Any help on this would be greatly appreciated. Thank you!