|
|
@ -9,7 +9,8 @@ import { OrderDiscountService } from './order-discount.service'; |
|
|
|
@NgModule({ |
|
|
|
imports: [BrowserModule, FormsModule], |
|
|
|
declarations: [AppComponent], |
|
|
|
providers: [{ provide: OrderService, useClass: OrderDiscountService }], |
|
|
|
providers: [{ provide: OrderService, useExisting: OrderDiscountService },OrderDiscountService], |
|
|
|
|
|
|
|
bootstrap: [AppComponent], |
|
|
|
}) |
|
|
|
export class AppModule {} |