docs(ngIf): fixes font color change

The single quote causes the color of the font to change in the example, so I changed the text in the example to account for this.

Closes #9599
This commit is contained in:
Jesse Palmer
2014-10-13 14:59:23 -04:00
committed by Igor Minar
parent 0f6aa10413
commit 63ef085b9a

View File

@@ -49,7 +49,7 @@
Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /><br/>
Show when checked:
<span ng-if="checked" class="animate-if">
I'm removed when the checkbox is unchecked.
This is removed when the checkbox is unchecked.
</span>
</file>
<file name="animations.css">
@@ -103,15 +103,15 @@ var ngIfDirective = ['$animate', function($animate) {
});
}
} else {
if(previousElements) {
if (previousElements) {
previousElements.remove();
previousElements = null;
}
if(childScope) {
if (childScope) {
childScope.$destroy();
childScope = null;
}
if(block) {
if (block) {
previousElements = getBlockNodes(block.clone);
$animate.leave(previousElements).then(function() {
previousElements = null;