Skip to content

Commit

Permalink
fix(context directive): fix No provider for MapBrowserComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Aug 22, 2018
1 parent 388d808 commit 329363e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Directive, Self, OnInit, OnDestroy, Optional } from '@angular/core';
import { Directive, OnInit, OnDestroy, Optional } from '@angular/core';

import { Subscription } from 'rxjs';
import { skip, filter } from 'rxjs/operators';
Expand Down Expand Up @@ -26,7 +26,7 @@ export class LayerContextDirective implements OnInit, OnDestroy {
}

constructor(
@Self() private component: MapBrowserComponent,
private component: MapBrowserComponent,
private contextService: ContextService,
private dataSourceService: DataSourceService,
private layerService: LayerService,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Directive, Self, OnInit, OnDestroy } from '@angular/core';
import { Directive, OnInit, OnDestroy } from '@angular/core';

import { Subscription } from 'rxjs';
import { filter } from 'rxjs/operators';
Expand All @@ -20,7 +20,7 @@ export class MapContextDirective implements OnInit, OnDestroy {
}

constructor(
@Self() component: MapBrowserComponent,
component: MapBrowserComponent,
private contextService: ContextService
) {
this.component = component;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Directive, Self, OnInit, OnDestroy } from '@angular/core';
import { Directive, OnInit, OnDestroy } from '@angular/core';

import { Subscription } from 'rxjs';
import { filter } from 'rxjs/operators';
Expand All @@ -18,7 +18,7 @@ export class ToolContextDirective implements OnInit, OnDestroy {
private context$$: Subscription;

constructor(
@Self() component: ToolbarComponent,
component: ToolbarComponent,
private toolService: ToolService,
private contextService: ContextService
) {
Expand Down

0 comments on commit 329363e

Please sign in to comment.