Skip to content

Commit

Permalink
Merge pull request #25 from evictor/patch-1
Browse files Browse the repository at this point in the history
instructions for fsm module inclusion
  • Loading branch information
keithnlarsen committed Apr 19, 2016
2 parents 1f20df7 + 48ecb06 commit d998321
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,17 @@ npm install fsm-sticky-header
<script src="https://rawgithub.com/FutureStateMobile/sticky-headers/master/src/fsm-sticky-header.js"></script>
</head>
```

Then include the `fsm` Angular module in your own module:

```js
angular.module('MyHappyModule', ['fsm']);
```

Then add the directive to the element that you with to stick to the top of the page

```html
<table id="testtable" >
<table ng-app="MyHappyModule" id="testtable">
<thead>
<tr fsm-sticky-header scroll-body="'#testtable'" scroll-stop='50'>
<th>Column One Header</th>
Expand Down

0 comments on commit d998321

Please sign in to comment.