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

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 #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)