Skip to content

Commit

Permalink
remove NoopAnimationsModule
Browse files Browse the repository at this point in the history
  • Loading branch information
BhavinPatel04 committed Sep 28, 2019
1 parent a8bbc18 commit 2014cc2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion projects/ngx-datetime-range-picker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-datetime-range-picker",
"version": "1.1.6",
"version": "1.1.7",
"homepage": "https://github.com/BhavinPatel04/ngx-datetime-range-picker",
"bugs": "https://github.com/BhavinPatel04/ngx-datetime-range-picker/issues",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { async, ComponentFixture, TestBed } from "@angular/core/testing";
import { SimpleChanges } from "@angular/core";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
import { NgxDatetimeRangePickerModule } from "./ngx-datetime-range-picker.module";
import { NgxDatetimeRangePickerComponent } from "./ngx-datetime-range-picker.component";
import { DateSide } from "./interfaces";
Expand All @@ -13,7 +14,7 @@ describe("NgxDatetimeRangePickerComponent", () => {

beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [NgxDatetimeRangePickerModule],
imports: [NgxDatetimeRangePickerModule, NoopAnimationsModule],
declarations: []
}).compileComponents();
}));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { NgModule, ModuleWithProviders, Optional, SkipSelf } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FormsModule } from "@angular/forms";
import { NoopAnimationsModule } from "@angular/platform-browser/animations";
import { MaterialModule } from "./material/material.module";
import { NgxDatetimeRangePickerComponent } from "./ngx-datetime-range-picker.component";
import { ObjNgFor } from "./pipes/objNgFor.pipe";
import { NgxDatetimeRangePickerService } from "./ngx-datetime-range-picker.service";

@NgModule({
declarations: [ObjNgFor, NgxDatetimeRangePickerComponent],
imports: [CommonModule, NoopAnimationsModule, FormsModule, MaterialModule],
imports: [CommonModule, FormsModule, MaterialModule],
exports: [NgxDatetimeRangePickerComponent, MaterialModule]
})
export class NgxDatetimeRangePickerModule {
constructor(@Optional() @SkipSelf() parentModule: NgxDatetimeRangePickerModule) {
if (parentModule) {
throw new Error("NgxDatetimeRangePickerModule is already loaded. Import it in the AppModule only");
throw new Error(`ERR_NGX_DATETIME_RANGE_PICKER:
NgxDatetimeRangePickerModule is already loaded. Import it in the AppModule only`);
}
}

Expand Down

0 comments on commit 2014cc2

Please sign in to comment.