Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Doesn't support AMD loaders like requireJS #246

Closed

Description

@m-amr

I am using requireJS as asynchronous module loader, i configured requireJS with the path of angular-loading-bar but when i load it using require i can't found the module.

Activity

  1. the-unsoul commented on Oct 21, 2015

    @the-unsoul

    I am using the same combination, of requireJS + angular-loading-bar
    And it working as normally for me, I am asumming that your question was about you couldn't see the loading bar when requireJS loading its modules, right?

  2. m-amr commented on Oct 21, 2015

    @m-amr
    Author

    At requireJs.config
    1- i added this line to the pathes
    loadingBar:'bower_components/angular-loading-bar/build/loading-bar.min',

    2-and i use shim to add angular as dependency for that module
    loadingBar: {
    exports: 'loadingBar',
    deps:['angular']
    },

    i have my mainAngularModule called appModule;
    what i am trying to do is to add the loadingBar module as a dependency in my appModule

    var loadingBar = require('loadingBar');
    console.log(loadingBar);
    //display undefined

    var appModule = angular.module('appModule', [
    loadingBar.name
    ]);
    

    it throw error because loadingBar is undefined
    but when i added the module name as string it works

    var appModule = angular.module('appModule', [
    'chieffancypants.loadingBar'
    ]);
    
  3. m-amr commented on Oct 22, 2015

    @m-amr
    Author
  4. the-unsoul commented on Oct 22, 2015

    @the-unsoul

    +1

  5. attila226 commented on Nov 4, 2015

    @attila226

    +1

  6. faceleg commented on Mar 17, 2016

    @faceleg
    Collaborator

    Closing, refer to #248

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions