Skip to content

Commit

Permalink
fix(Resize): removed browseranimationsmodule
Browse files Browse the repository at this point in the history
  • Loading branch information
alisahinozcelik committed Sep 12, 2020
1 parent 968c1a0 commit 8e73a47
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
32 changes: 10 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ Trigger openning selection by another element
Create your own custom modals, dialogs etc.

_Dependencies:_
* @angular/cdk
* `@angular/cdk`

_Required Root Module Imports:_
* `OverlayModule` from `@thalesrc/ng-utils`

### OverlayComponent

Expand All @@ -104,25 +107,7 @@ Usage:
@import '~@angular/cdk/overlay-prebuilt.css';
```

**Requires module import both at root module and at the module to use**
```typescript
import { OverlayModule } from '@thalesrc/ng-utils';

// app.module.ts
@NgModule({
declarations: [
...
],
imports: [
...
OverlayModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }

// foo.module.ts
@NgModule({
declarations: [
...
Expand Down Expand Up @@ -152,9 +137,12 @@ export class FooModule { }
Observe element's size changes, animate their size, etc..

_Dependencies:_
* @angular/animations
* @angular/platform-browser
* @thalesrc/resize-manager
* `@angular/animations`
* `@angular/platform-browser`
* `@thalesrc/resize-manager`

_Required Root Module Imports:_
* `BrowserAnimationsModule` from `@angular/platform-browser/animations`

### ResizeService

Expand Down
2 changes: 0 additions & 2 deletions projects/ng-utils/src/resize/resize.module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ResizeDirective } from './resize.directive';
import { AnimateResizeDirective } from './animate-resize.directive';

@NgModule({
imports: [
BrowserAnimationsModule,
],
declarations: [
ResizeDirective,
Expand Down

0 comments on commit 8e73a47

Please sign in to comment.