fix(platform-browser): add @Injectable where it was missing (#22005)

PR Close #22005
This commit is contained in:
Alex Rickabaugh 2018-02-02 09:15:08 -08:00 committed by Miško Hevery
parent 7f9b1b78f6
commit 0a1a397cd7
2 changed files with 3 additions and 0 deletions

View File

@ -13,5 +13,6 @@ ts_library(
module_name = "@angular/animations/browser", module_name = "@angular/animations/browser",
deps = [ deps = [
"//packages/animations", "//packages/animations",
"//packages/core",
], ],
) )

View File

@ -6,12 +6,14 @@
* found in the LICENSE file at https://angular.io/license * found in the LICENSE file at https://angular.io/license
*/ */
import {AnimationPlayer, NoopAnimationPlayer} from '@angular/animations'; import {AnimationPlayer, NoopAnimationPlayer} from '@angular/animations';
import {Injectable} from '@angular/core';
import {containsElement, invokeQuery, matchesElement, validateStyleProperty} from './shared'; import {containsElement, invokeQuery, matchesElement, validateStyleProperty} from './shared';
/** /**
* @experimental * @experimental
*/ */
@Injectable()
export class NoopAnimationDriver implements AnimationDriver { export class NoopAnimationDriver implements AnimationDriver {
validateStyleProperty(prop: string): boolean { return validateStyleProperty(prop); } validateStyleProperty(prop: string): boolean { return validateStyleProperty(prop); }