NullInjectorError: No provider for itemTypeService!
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Location } from '@angular/common';
|
||||
import { Component, Inject, Injectable, OnInit } from '@angular/core';
|
||||
import { Component, Injectable, OnInit } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { FolderService, IItem, IListItem, ItemService, ItemTypeService, commonReducers } from '@farmmaps/common';
|
||||
import { Store } from '@ngrx/store';
|
||||
@@ -23,7 +23,7 @@ export class SelectedItemCropfieldComponent extends AbstractSelectedItemComponen
|
||||
|
||||
public items: Observable<IListItem[]>;
|
||||
|
||||
constructor(store: Store<mapReducers.State | commonReducers.State>, @Inject('itemTypeService') itemTypeService: ItemTypeService, location: Location, router: Router, private itemService$: ItemService, private folderService$: FolderService) {
|
||||
constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService, location: Location, router: Router, private itemService$: ItemService, private folderService$: FolderService) {
|
||||
super(store, itemTypeService,location,router);
|
||||
}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { Location } from '@angular/common';
|
||||
import { Component, Inject, Injectable } from '@angular/core';
|
||||
import { Component, Injectable } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { ItemTypeService, commonReducers } from '@farmmaps/common';
|
||||
import { Store } from '@ngrx/store';
|
||||
@@ -18,7 +18,7 @@ import { AbstractSelectedItemComponent } from '../selected-item/selected-item.co
|
||||
})
|
||||
export class SelectedItemGeotiffComponent extends AbstractSelectedItemComponent {
|
||||
|
||||
constructor(store: Store<mapReducers.State | commonReducers.State>, @Inject('itemTypeService') itemTypeService: ItemTypeService, location: Location, router: Router) {
|
||||
constructor(store: Store<mapReducers.State | commonReducers.State>, itemTypeService: ItemTypeService, location: Location, router: Router) {
|
||||
super(store, itemTypeService,location,router);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user