1、module里注入
@NgModule({
imports: [
BatchExtractionRoutingModule,
SharedModule
],
exports: [
BatchExtractionComponent
],
declarations: [
BatchExtractionComponent
],
providers: [
VideoManageListService
],
})
2、组件里注入
@Component({
selector: 'app-video-manage-list',
templateUrl: './video-manage-list.component.html',
styleUrls: ['./video-manage-list.component.scss'],
providers: [VideoManageListService]
})