Coder Social home page Coder Social logo

Help with code about angular-busy HOT 9 CLOSED

cgross avatar cgross commented on May 27, 2024
Help with code

from angular-busy.

Comments (9)

cgross avatar cgross commented on May 27, 2024

Hmm. I don't see any obvious problem from the code. Can you reproduce the problem in a plnkr? http://plnkr.co/

from angular-busy.

cgross avatar cgross commented on May 27, 2024

Thanks. It looks like you're using Angular 1.0. Thats pretty old now. Angular-busy doesn't work with v1.0. It requires Angular 1.2.

from angular-busy.

JobaDiniz avatar JobaDiniz commented on May 27, 2024

Sorry, I deleted by mistake my comment: http://plnkr.co/edit/1RdeFappmf4mLsT52dif?p=preview

In Version 2 I changed the angular version, and it is working.
However in my app it isn't working... I don't know why...

from angular-busy.

cgross avatar cgross commented on May 27, 2024

Its hard for me to guess why its not working in your app. I would try to remove parts of your code until it starts working. For example, replace the UserApp call with a $timeout. Does it then start working? Rinse and repeat until it works and focus on the thing that you removed.

Its still possible its a bug in angular-busy but I don't have any clues.

from angular-busy.

JobaDiniz avatar JobaDiniz commented on May 27, 2024

Hi, look again: http://plnkr.co/edit/1RdeFappmf4mLsT52dif

I added several things. In fact, my project is on github, so there's no problem in showing it.
When you click the facebook button, the page blinks, but no loading message is shown.

If you change the UserApp.OAuth call to use $timeout, the same behavior occurs; it doesn't work.

from angular-busy.

cgross avatar cgross commented on May 27, 2024

That plnkr doesn't work for me. I don't get any buttons.

from angular-busy.

JobaDiniz avatar JobaDiniz commented on May 27, 2024

Sorry, I fixed it out... try again

from angular-busy.

cgross avatar cgross commented on May 27, 2024

It looks like the div you've put the cg-busy on is empty and therefore doesn't show up. Angular-busy is designed to be used on a div with content and the overlay will appear over the content. Your div is empty and the browser has therefore rendered it as 0 height and 0 width. Try putting cg-busy on a div that has content or is otherwise ensured to have a height and width.

from angular-busy.

JobaDiniz avatar JobaDiniz commented on May 27, 2024

Strange, because my other view works just fine with this empty div, just
like the readme shows how to use

On Sunday, May 11, 2014, Chris Gross [email protected] wrote:

It looks like the div you've put the cg-busy on is empty and therefore
doesn't show up. Angular-busy is designed to be used on a div with content
and the overlay will appear over the content. Your div is empty and the
browser has therefore rendered it as 0 height and 0 width. Try putting
cg-busy on a div that has content or is otherwise ensured to have a height
and width.


Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-42789065
.

Atenciosamente,
Joberto Diniz
jobertodiniz.com

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.