Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
Add some trailing commas, so dartfmt can better format domServiceBind…
Browse files Browse the repository at this point in the history
…ing.

Up until now, I always thought it was a list of bindings. Never realized this was a single provider and that the things listed in there were dependencies needed by the provider.

PiperOrigin-RevId: 202867471
  • Loading branch information
tijoforyou authored and nshahan committed Jul 2, 2018
1 parent 520bf95 commit 8f6ed7f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/utils/browser/dom_service/angular_2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ export 'package:angular_components/utils/browser/dom_service/dom_service.dart';
// using dart's factory pattern.

/// Factory for [DomService].
const domServiceBinding =
const FactoryProvider(DomService, createDomService, deps: const [
const [DomService, const Optional(), const SkipSelf()],
const [Disposer, const Optional()],
NgZone,
Window
]);
const domServiceBinding = const FactoryProvider(
DomService,
createDomService,
deps: const [
const [DomService, const Optional(), const SkipSelf()],
const [Disposer, const Optional()],
NgZone,
Window,
],
);

// Shared DomService resource. Currently there is only one per application.
DomService _singletonService;
Expand Down

0 comments on commit 8f6ed7f

Please sign in to comment.