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

Commit 1ce5d21

Browse files
yichaowanggkalpak
authored andcommittedJun 25, 2015
docs(ngAnimate): fix typos in JS and CSS selector
Closes #12203
1 parent 28c1669 commit 1ce5d21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/ngAnimate/module.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@
655655
* ngModule.directive('greetingBox', ['$animate', function($animate) {
656656
* return function(scope, element, attrs) {
657657
* attrs.$observe('active', function(value) {
658-
* value ? $animate.addClass(element, 'on') ? $animate.removeClass(element, 'on');
658+
* value ? $animate.addClass(element, 'on') : $animate.removeClass(element, 'on');
659659
* });
660660
* });
661661
* }]);
@@ -666,7 +666,7 @@
666666
*
667667
* ```css
668668
* /* normally we would create a CSS class to reference on the element */
669-
* [greeting-box].on { transition:0.5s linear all; background:green; color:white; }
669+
* greeting-box.on { transition:0.5s linear all; background:green; color:white; }
670670
* ```
671671
*
672672
* The `$animate` service contains a variety of other methods like `enter`, `leave`, `animate` and `setClass`. To learn more about what's

0 commit comments

Comments
 (0)