Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

ng-if

<label>Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /></label><br/>
Show when checked:
<span ng-if="checked" class="animate-if">
  This is removed when the checkbox is unchecked.
</span>
Source by docs.angularjs.org #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+7 =