8000 docs(ngAnimate): fix toggle button in example · coderofsalvation/angular.js@85d7e09 · GitHub
[go: up one dir, main page]

Skip to content

Commit 85d7e09

Browse files
glenr4Narretz
authored andcommitted
docs(ngAnimate): fix toggle button in example
The toggle button code on line 153 only sets bool to true, rather than toggling it. The proposed change fixes this. Closes angular#14387
1 parent 243a576 commit 85d7e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngAnimate/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
* <div ng-show="bool" class="fade">
131131
* Show and hide me
132132
* </div>
133-
* <button ng-click="bool=true">Toggle</button>
133+
* <button ng-click="bool=!bool">Toggle</button>
134134
*
135135
* <style>
136136
* .fade.ng-hide {

0 commit comments

Comments
 (0)
0