Uncaught (in promise): Error: No provider for QuoteService!

Mar.05,2021

I have never written you in this way. But should your ServicesModule appear in import (in the calling module)


import { NgModule, ModuleWithProviders } from "@angular/core";
import { CommonModule } from "@angular/common";
import { QuoteService } from "./quote.service";

export { QuoteService };

@NgModule()
export class ServicesModule {
  static forRoot(): ModuleWithProviders {
    return {
      ngModule: ServicesModule,
      providers: [QuoteService]
    };
  }
}
forRootforchild

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34a11-2bf37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34a11-2bf37.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?