GithubHelp home page GithubHelp logo

Comments (4)

geo242 avatar geo242 commented on June 12, 2024

@simonemazzoni This error seems like it could be that the library is either not being loaded, or not being loaded before your module is instantiated. Have you checked both of those things?

from angular-busy.

simonemazzoni avatar simonemazzoni commented on June 12, 2024

@geo242 thanks for the answer, but I don't think it is a load problem.

I found out that the correct way to define defaults config is this:
angular.module('your_app').value('cgBusyDefaults',{ message:'Loading Stuff', backdrop: false, templateUrl: 'my_custom_template.html', delay: 300, minDuration: 700, wrapperClass: 'my-class my-class2' });

So it isn't exposed a provider as in other angular modules. That's my error.

Anyway I think that implement and export a provider would be preferable, at least in my opinion.

from angular-busy.

geo242 avatar geo242 commented on June 12, 2024

@simonemazzoni Sorry, I missed the fact that you were looking for a config provider. You can either use the method you describe, or inject the cgBusyDefaults into a run block and manipulate it there.

Setting the defaults in a provider sounds like a good candidate for a PR. :)

from angular-busy.

simonemazzoni avatar simonemazzoni commented on June 12, 2024

@geo242 Yes, I can think about it as soon I find some time. ;)

Please leave this open so that me or someone knows it has to be done.

from angular-busy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.