Show/hide ionic tab based on angular variable cause error in background

Answered question in the issue