I got an error when using angular2-infinite-scroll. I want to reproduce it in a plunkr.
I tried to use npmcdn, so I add this line in the index.html file:
<script src="https://npmcdn.com/angular2-infinite-scroll@0.1.2"></script>
But I got the error:
Uncaught ReferenceError: require is not defined
This is my plunker.
How can I add a NPM package correctly in the plunker?