ngx-modialog icon indicating copy to clipboard operation
ngx-modialog copied to clipboard

ErrorUncaught (in promise): Error: DI Error

Open rrohitesh opened this issue 9 years ago • 1 comments

Hello All,

I am getting

ErrorUncaught (in promise): Error: DI Error Error: DI Error at NoProviderError.ZoneAwareError (http://localhost:8425/js/polyfills.5fe0f3494eca66cea073.js:16498:34) at NoProviderError.BaseError [as constructor] (http://localhost:8425/js/vendor.5fe0f3494eca66cea073.js:1327:21)

when my component is getting rendered please help.

rrohitesh avatar Apr 07 '17 10:04 rrohitesh

Are you sure you followed the complete tutorial?

import { NgModule }       from '@angular/core';
import { BrowserModule }  from '@angular/platform-browser';

import { ModalModule } from 'angular2-modal';
import { BootstrapModalModule } from 'angular2-modal/plugins/bootstrap';

import { AppComponent }   from './app.component';

@NgModule({
  imports: [ 
    BrowserModule, 
    ModalModule.forRoot(),
    BootstrapModalModule
  ],
  declarations: [ AppComponent ],
  bootstrap:    [ AppComponent ]
})
export class AppModule { }

Probably you're missing the ModalModule.forRoot() or BootstrapModalModule entry

thardes2 avatar Apr 10 '17 14:04 thardes2