michaelbromley / michaelbromley/angularUtils
dirPagination. Unknown provider: angularUtils.directives.dirPaginationProvider
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2k
- Forks
- 842
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I tried to use dirPagination system on my mean.js project but when I load it in the Angular controller it shows the next error:
Error: [$injector:unpr] Unknown provider: angularUtils.directives.dirPaginationProvider <- angularUtils.directives.dirPagination <- CoursesController
I installed the module with bower and I have the "version": "0.11.1". I added the module to my config and assets files. My Controller is like this:
angular.module('courses').controller('CoursesController', ['$scope', '$stateParams',
'$location', 'Authentication',
'Courses', 'Rooms', 'Periods',
'Subjects', 'ngDialog', 'notify',
'angularUtils.directives.dirPagination',
function($scope, $stateParams, $location, Authentication, Courses, Rooms, Periods, Subjects, ngDialog, notify) {
Am I adding the wrong way the module, or what else do I have to do?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CoursesController dependency list and the Angular module configuration and assets entries described in the issue. Check how version 0.11.1 exposes the dirPagination module and compare that with the controller's dependency declaration. Done means the application loads CoursesController without the unknown-provider error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angularjs
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100