Skip to content

Commit

Permalink
docs: add element reference target (#77)
Browse files Browse the repository at this point in the history
It works as it is handled in the service, so it could be documented.
  • Loading branch information
SmallhillCZ authored and Nicky Lenaers committed Sep 11, 2018
1 parent 61d58c3 commit e7357ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ export class AppModule { }
<!-- Works for excluding '#' -->
<button [ngx-scroll-to]="'destination'">Go to destination</button>

<div id="destination">
<!-- Works for angular ElementRef -->
<button [ngx-scroll-to]="destinationRef">Go to destination</button>

<div id="destination" #destinationRef>
You've reached your destination.
</div>
```
Expand Down

0 comments on commit e7357ad

Please sign in to comment.