File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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 * }]);
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
You can’t perform that action at this time.
0 commit comments