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