Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 63ef085

Browse files
jesselpalmerIgorMinar
authored andcommitted
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
1 parent 0f6aa10 commit 63ef085

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ng/directive/ngIf.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
Click me: <input type="checkbox" ng-model="checked" ng-init="checked=true" /><br/>
5050
Show when checked:
5151
<span ng-if="checked" class="animate-if">
52-
I'm removed when the checkbox is unchecked.
52+
This is removed when the checkbox is unchecked.
5353
</span>
5454
</file>
5555
<file name="animations.css">
@@ -103,15 +103,15 @@ var ngIfDirective = ['$animate', function($animate) {
103103
});
104104
}
105105
} else {
106-
if(previousElements) {
106+
if (previousElements) {
107107
previousElements.remove();
108108
previousElements = null;
109109
}
110-
if(childScope) {
110+
if (childScope) {
111111
childScope.$destroy();
112112
childScope = null;
113113
}
114-
if(block) {
114+
if (block) {
115115
previousElements = getBlockNodes(block.clone);
116116
$animate.leave(previousElements).then(function() {
117117
previousElements = null;

0 commit comments

Comments
 (0)