File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 655
655
* ngModule.directive('greetingBox', ['$animate', function($animate) {
656
656
* return function(scope, element, attrs) {
657
657
* 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');
659
659
* });
660
660
* });
661
661
* }]);
666
666
*
667
667
* ```css
668
668
* /* 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; }
670
670
* ```
671
671
*
672
672
* The `$animate` service contains a variety of other methods like `enter`, `leave`, `animate` and `setClass`. To learn more about what's
You can’t perform that action at this time.
0 commit comments