0

Using AngularJS 1.4.8, how does one obtain a reference to uiViewScrollProvider (it's not found at injection time):

mainApp.config(['$routeProvider', '$locationProvider', '$httpProvider', '$uiViewScrollProvider', function ($routeProvider, $locationProvider, $httpProvider, $uiViewScrollProvider) {
Robert Christian
  • 18,218
  • 20
  • 74
  • 89

1 Answers1

1

uiViewScrollProvider belongs to ui-router not ngRoute.

Change your app like this,

var mainApp = angular.module('mainApp', ['ui.router']);
Sajeetharan
  • 216,225
  • 63
  • 350
  • 396