Hi i have this error from angular Can't resolve all parameters for RoomService: (?). i have this two files, on is the service.
room.service.ts
import { Injectable } from '@angular/core';
import { ResourceService } from './resource.service';
import { Http } from '@angular/http';
import { CONFIG as APP_CONSTANTS } from '../config/config';
@Injectable()
export class RoomService extends ResourceService {
constructor(http) {
super(http);
}
}
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
// Angular Material
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MaterialComponents } from '../ngcomponents/material.component';
import { AppRoutingModule } from './app-routing.module';
// Components
import { AppComponent } from './app.component';
import { RoomlistComponent } from './components/roomlist/roomlist.component';
// services
import { HttpModule } from '@angular/http';
import { RoomService } from './services/room.service';
@NgModule({
declarations: [
AppComponent,
RoomlistComponent
],
imports: [
BrowserModule,
AppRoutingModule,
HttpModule,
BrowserAnimationsModule,
MaterialComponents
],
providers: [RoomService],
bootstrap: [AppComponent]
})
export class AppModule { }
and i don´t have any idea what can the problem, any idea, just in case as you can see the RoomService is extending from another file resourceService i don´t know if that is the problem but i don´t think so.