Skip to content

Commit

Permalink
added NoopAnimationsModule
Browse files Browse the repository at this point in the history
  • Loading branch information
BhavinPatel04 committed Jun 21, 2019
1 parent 79bb09f commit 2590b85
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"test": "ng test",
"lint": "ng lint --fix",
"e2e": "ng e2e",
"gh-pages": "ng build --prod --base-href=\"/ngx-datetime-range-picker/\" && ngh --dir dist/ngx-braebone-app",
"gh-pages": "ng build --prod --base-href=\"/ngx-datetime-range-picker/\" && ngh --dir dist",
"format": "prettier \"**/*.{ts,js,html,css,scss,json,md}\" --write",
"check-format": "prettier \"**/*.{ts,js,html,css,scss,json,md}\" --write -l",
"current-branch": "$(git branch | grep \\* | cut -d ' ' -f2)",
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.2",
"version": "1.1.3",
"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
Expand Up @@ -198,7 +198,7 @@
<div *ngIf="(!config.singleDatePicker && config.showRanges) || config.timePicker" class="ranges">
<button
mat-button
*ngFor="let range of (config.availableRanges | ObjNgFor)"
*ngFor="let range of config.availableRanges | ObjNgFor"
class="calendar-range"
[ngClass]="{ 'active-range': range == activeRange }"
(click)="onRangeClick(range, config.availableRanges[range])"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
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, FormsModule, MaterialModule],
imports: [CommonModule, NoopAnimationsModule, FormsModule, MaterialModule],
exports: [NgxDatetimeRangePickerComponent, MaterialModule]
})
export class NgxDatetimeRangePickerModule {
Expand Down
4 changes: 2 additions & 2 deletions src/common/services/util.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Cache } from "./cache.service";

import * as _ from "lodash";

export const Util = new class UtilService {
export const Util = new (class UtilService {
constructor() {}

truncateCharacter(input, chars, breakOnWord) {
Expand Down Expand Up @@ -214,4 +214,4 @@ export const Util = new class UtilService {
}
};
}
}();
})();

0 comments on commit 2590b85

Please sign in to comment.