财产' readFiles'是私人的,只能在课堂上访问' ImageUploadDirective'

时间:2017-01-27 12:15:48

标签: angular

在我的角度2项目中,当我运行npm run build:prod我得到一个error.can任何一个建议种子项目的平均值2.0(Angular和nodejs)

Property 'readFiles' is private and only accessible within class 'ImageUploadDirective'.

我的appmodule.ts是

 import { ImageUploadDirective, ImageUploadModule } from 'ng2-imageupload';

    import { MapComponent } from './map/mapComponent';
   import { AgmCoreModule } from 'angular2-google-maps/core';

    import { HttpModule } from '@angular/http';
    import { routing } from './app.routing';
    @NgModule({
        declarations: [
            AppComponent,
            MapComponent,
            Add_address,Add_City,Add_District,Add_sub_urbans
             ],

        imports: [AgmCoreModule.forRoot({
              apiKey: "Key",
              libraries: ["places"]
                }),
                 BrowserModule,
                ImageUploadModule,


                ],

        providers:[ApiMessageService,RealEstateService],

        bootstrap: [AppComponent]
    })
    export class AppModule {

    }

0 个答案:

没有答案