Angular: ng-if

http://angularjs.org/

by sqren

HTML

<input ng-focus="hasFocus = true" ng-blur="hasFocus = false" type="text" placeholder="Click to add focus"/>
<p ng-show="hasFocus">The field has focus! Click outside input to blur.</p>

JavaScript

var myApp = angular.module('myApp', []);