michaelbromley / michaelbromley/angularUtils

dirPagination. Unknown provider: angularUtils.directives.dirPaginationProvider

Open
#440 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.