Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

infinite-scroll #1942


User avatar
0
avanekar02 created

has anybody used infinite-scroll in their project i installed it but get an unpr injector error

appModule.controller('tenant.views.catalog.index', [
    '$scope', '$uibModal',,'infinite-scroll',
function ($scope, $uibModal,$http) {
    var vm = this;

i downloaded the ng-infinite-scroll.min.js in the common folder under web common scripts

error i get is below

angular.js:13642 Error: [$injector:unpr] <a class="postlink" href="http://errors.angularjs.org/1.5.6/$injector/unpr?p0=ng-infinite-scrollProvider%20%3C-%20ng-infinite-scroll%20%3C-%20tenant.views.catalog.index">http://errors.angularjs.org/1.5.6/$inje ... alog.index</a>


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Have you added infinite-scroll module to your module dependencies (to here: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/App/app.js#L2">https://github.com/aspnetzero/aspnet-ze ... /app.js#L2</a>)