Skip to content

Commit

Permalink
Update README.md (#326)
Browse files Browse the repository at this point in the history
The README was referencing a DragScrollDirective but when I installed the package I was told that there was only a DragScrollItemDirective, so I updated the README to reflect that.
  • Loading branch information
NathanWailes authored May 30, 2024
1 parent 627f481 commit 61cdb2b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ This project needs `Angular 5+` as dependencies though.
# Setup

Our component and directive are standalone now!
You'll need to import `DragScrollComponent` and/or `DragScrollDirective` to your application module or component.
You'll need to import `DragScrollComponent` and/or `DragScrollItemDirective` to your application module or component.

## Module:

```typescript
import { DragScrollComponent, DragScrollDirective } from 'ngx-drag-scroll';
import { DragScrollDirective } from './ngx-drag-scroll-item';
import { DragScrollComponent, DragScrollItemDirective } from 'ngx-drag-scroll';

...

Expand All @@ -61,7 +60,7 @@ export class AppModule {
## Component:

```typescript
import { DragScrollComponent, DragScrollDirective } from 'ngx-drag-scroll';
import { DragScrollComponent, DragScrollItemDirective } from 'ngx-drag-scroll';

@Component({
selector: 'sample',
Expand Down

0 comments on commit 61cdb2b

Please sign in to comment.