import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { ClinicFacilityService } from './apiClient.module';
@NgModule({
imports: [
CommonModule,
FormsModule
],
declarations: [
DailyScheduleComponent,
],
providers: [
ClinicFacilityService
],
exports: [
DailyScheduleComponent
],
})
export class ClinicDashboardModule {
}
Tôi cần phải nhập khẩu ClinicFacilityService
được khai báo trong một mô-đun (apiClient.module
)Angular2 Module: Làm thế nào tôi có thể nhập khẩu một dịch vụ từ một mô-đun
Đây có phải là thậm chí có thể, nếu không tại sao là không thể. Tại thời điểm này tôi đang nhập khẩu ClinicFacilityService
như thế này:
import { ClinicFacilityService } from './api-client-service/clinic-facility.service';
Làm việc như ma thuật, nhờ @ Günter Zöchbauer –
Vui mừng khi nghe :) –
thông tin rất hữu ích, tái: chênh lệch giữa nhập khẩu kiễu góc, nhập khẩu nguyên cảo – SouthShoreAK