Improvement to ng-if directive.