Use `ng-if` to hide inactive tabs

By using `ng-if` the scope for the tab is destroyed when hidden. If there are a lot of large tabs then this can significantly reduce the length of a $digest cycle.