使用AngularJS 1.4.8,如何获得对uiViewScrollProvider的引用(在注入时未找到):
mainApp.config(['$routeProvider', '$locationProvider', '$httpProvider', '$uiViewScrollProvider', function ($routeProvider, $locationProvider, $httpProvider, $uiViewScrollProvider) {
uiViewScrollProvider
belongs to ui-router
not ngRoute
.
Change your app like this,
var mainApp = angular.module('mainApp', ['ui.router']);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.