Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicky Lenaers committed Jul 20, 2017
1 parent 67bc0a6 commit b866300
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,25 @@ export class AppModule { }
## Advanced Usage
**component.ts**
```ts
import { ScrollToAnimationEasing, ScrollToEvent, ScrollToOffsetMap } from '@nicky-lenaers/ngx-scroll-to';

@Component({
selector: 'my-component'
templateUrl: './component.html'
})
export class MyComponent {

public ngxScrollToDestination: string;
public ngxScrollToEvent: string;
public ngxScrollToEvent: ScrollToEvent;
public ngxScrollToDuration: number;
public ngxScrollToEasing: string;
public ngxScrollToEasing: ScrollToAnimationEasing;
public ngxScrollToOffset: number;
public ngxScrollToOffsetMap: Map<>
public ngxScrollToOffsetMap: ScrollToOffsetMap;

constructor() {

this.ngxScrollToDestination = 'destination-1';
this.ngxScrollToEvent = 'mouseover';
this.ngxScrollToEvent = 'mouseenter';
this.ngxScrollToDuration = 1500;
this.ngxScrollToEasing = 'easeOutElastic';
this.ngxScrollToOffset = 300;
Expand Down

0 comments on commit b866300

Please sign in to comment.