Skip to content

Commit

Permalink
fix: InjectableAnimationEngine constructor optional scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed May 10, 2024
1 parent ff2d93e commit 58d2254
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/angular/src/lib/animations/animations.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgModule, Injectable, Inject, NgZone, RendererFactory2, Optional, SkipSelf, ɵChangeDetectionScheduler as ChangeDetectionScheduler } from '@angular/core';
import { NgModule, Injectable, Inject, NgZone, RendererFactory2, Optional, SkipSelf, ɵChangeDetectionScheduler as ChangeDetectionScheduler, inject } from '@angular/core';
import { DOCUMENT } from '@angular/common';
import { AnimationBuilder, ɵBrowserAnimationBuilder as BrowserAnimationBuilder } from '@angular/animations';

Expand All @@ -12,8 +12,8 @@ import { NativeScriptCommonModule } from '../nativescript-common.module';

@Injectable()
export class InjectableAnimationEngine extends AnimationEngine {
constructor(@Inject(DOCUMENT) doc: any, driver: AnimationDriver, normalizer: AnimationStyleNormalizer, scheduler: ChangeDetectionScheduler) {
super(doc, driver, normalizer, scheduler);
constructor(@Inject(DOCUMENT) doc: any, driver: AnimationDriver, normalizer: AnimationStyleNormalizer) {
super(doc, driver, normalizer, inject(ChangeDetectionScheduler, {optional: true}));
}
}

Expand Down

0 comments on commit 58d2254

Please sign in to comment.