feat(animations): noop animation module and zone fixes (#14661)

This commit is contained in:
Matias Niemelä
2017-02-23 08:51:00 -08:00
committed by Igor Minar
parent ab3527c99b
commit e8d2743cfb
16 changed files with 608 additions and 104 deletions

View File

@ -8,7 +8,7 @@
import {AnimationMetadata, AnimationPlayer, AnimationStyleMetadata, sequence, ɵStyleData} from '@angular/animations';
import {AnimationDriver} from '../render/animation_driver';
import {AnimationEngine} from '../render/animation_engine';
import {DomAnimationEngine} from '../render/dom_animation_engine';
import {normalizeStyles} from '../util';
import {AnimationTimelineInstruction} from './animation_timeline_instruction';
@ -49,7 +49,7 @@ export class Animation {
// within core then the code below will interact with Renderer.transition(...))
const driver: AnimationDriver = injector.get(AnimationDriver);
const normalizer: AnimationStyleNormalizer = injector.get(AnimationStyleNormalizer);
const engine = new AnimationEngine(driver, normalizer);
const engine = new DomAnimationEngine(driver, normalizer);
return engine.animateTimeline(element, instructions);
}
}