State managment, ng-if directive