Skip to content

Commit

Permalink
removed BrowserModule to support lazy-loading
Browse files Browse the repository at this point in the history
  • Loading branch information
BhavinPatel04 committed Jun 21, 2019
1 parent 00245b7 commit 19916e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ npm install ngx-datetime-range-picker --save
import **NgxDatetimeRangePickerModule** in your module:

```typescript
import { BrowserModule } from "@angular/platform-browser";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
...
import { FormsModule } from '@angular/forms';
import { NgxDatetimeRangePickerModule } from 'ngx-datetime-range-picker';
import { AppComponent } from "./app.component";

@NgModule({
imports: [... , FormsModule, NgxDatetimeRangePickerModule.forRoot()],
imports: [BrowserModule, BrowserAnimationsModule, ... , FormsModule, NgxDatetimeRangePickerModule.forRoot()],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
Expand Down
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.1",
"version": "1.1.2",
"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,16 +1,14 @@
import { NgModule, ModuleWithProviders, Optional, SkipSelf } from "@angular/core";
import { CommonModule } from "@angular/common";
import { FormsModule } from "@angular/forms";
import { BrowserModule } from "@angular/platform-browser";
import { BrowserAnimationsModule } 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, BrowserModule, BrowserAnimationsModule, FormsModule, MaterialModule],
imports: [CommonModule, FormsModule, MaterialModule],
exports: [NgxDatetimeRangePickerComponent, MaterialModule]
})
export class NgxDatetimeRangePickerModule {
Expand Down

0 comments on commit 19916e5

Please sign in to comment.