thenikso / angular-inview

AngularJS directive to check if a DOM element is in the browser viewport.
http://thenikso.github.io/angular-inview/
MIT License
480 stars 112 forks source link

You should consider adding at least one example and/or codepen #76

Closed kennethlynne closed 8 years ago

kennethlynne commented 9 years ago

"The in-view attribute must contain a valid AngularJS expression to work" ->

<any in-view="doShit($inview)"></any>

?

aliyeysides commented 9 years ago

+1

richardvanbergen commented 9 years ago

I kind of agree but there are examples in the examples folder of the repository.

<li ng-repeat="t in testLines" in-view="lineInView($index, $inview, $inviewpart)">This is test line #{{$index}}</li>

So yes, you can probably use it like that. I'm going to check now.