I work with Angular 1.6. I have component "user-details", which contains two other components "switcher" and "user-table"like this:
<user-details>
<switcher> </switcher>
<user-table> </user-table>
</user-details>
"switcher" component contains md-switcher and "user-table" contains table with data. I need hiding my "user-table" components with the help of ng-if directive, when I press on md-switcher.