Open SOftEngrAtta opened 7 years ago
i faced this issue when i used ng2-notify in project , i declared this in declaretions as also show n in code below :
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule , FormGroup } from '@angular/forms'; import { SharedModule } from '../shared/shared.module'; import { Ng2AutoCompleteModule } from 'ng2-auto-complete'; import {Ng2PaginationModule} from 'ng2-pagination'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import {Ng2Notify, Ng2NotifyService} from 'ng2-notify/notify';
/** Components import **/
import { CelebritesListComponent } from './components/list/list.component'; import { CreateCelebrityComponent } from './components/create/create.component';
/**** End *****/
/* Services *****/ import { CelebrityServices } from './services/celebrity.service'; import {MessageService} from '../shared/message/message.service';
/** End *****/
import { AppRoutingModule } from '../app.router.config';
@NgModule({ imports: [ CommonModule , FormsModule , NgxDatatableModule , SharedModule , Ng2AutoCompleteModule ,Ng2PaginationModule ], declarations: [ CreateCelebrityComponent, CelebritesListComponent , Ng2Notify], providers : [CelebrityServices , MessageService , Ng2NotifyService] }) export class CelebritiesModule { }
i faced this issue when i used ng2-notify in project , i declared this in declaretions as also show n in code below :
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule , FormGroup } from '@angular/forms'; import { SharedModule } from '../shared/shared.module'; import { Ng2AutoCompleteModule } from 'ng2-auto-complete'; import {Ng2PaginationModule} from 'ng2-pagination'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; import {Ng2Notify, Ng2NotifyService} from 'ng2-notify/notify';
/** Components import **/
import { CelebritesListComponent } from './components/list/list.component'; import { CreateCelebrityComponent } from './components/create/create.component';
/**** End *****/
/* Services *****/ import { CelebrityServices } from './services/celebrity.service'; import {MessageService} from '../shared/message/message.service';
/** End *****/
import { AppRoutingModule } from '../app.router.config';
@NgModule({ imports: [ CommonModule , FormsModule , NgxDatatableModule , SharedModule , Ng2AutoCompleteModule ,Ng2PaginationModule ], declarations: [ CreateCelebrityComponent, CelebritesListComponent , Ng2Notify], providers : [CelebrityServices , MessageService , Ng2NotifyService] }) export class CelebritiesModule { }