moribvndvs / ng-busy Goto Github PK
View Code? Open in Web Editor NEWAn AngularJS module for reacting to when your app is busy.
Home Page: http://hackedbychinese.github.io/ng-busy
License: MIT License
An AngularJS module for reacting to when your app is busy.
Home Page: http://hackedbychinese.github.io/ng-busy
License: MIT License
https://hackedbychinese.github.io/ng-busy/
Blocked loading mixed active content "http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"[Learn More] ng-busy
Blocked loading mixed active content "http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap-theme.min.css"[Learn More] ng-busy
Blocked loading mixed active content "http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" ng-busy
If we have button text like this {{btnText}}, sometimes it doesn't replace {{}} expression. So there only way to use text in button is to have plain text. I started to experience this issue after addition parent/child ui-router states, main state has data resolving.
I use ngBusy in my application. It worked well until I tried it on a modal. I tried pasting a working code block (I mean it is working on the page) inside a modal (which is on the same view as this page, not another template) and ngBusy doesn't interfere anyhow. Since ngBusy is intercepting all the $http requests app wide, I couldn't figure out the reason for this odd situation.
Is there any known issues when using inside angularui modals?
Do you envisage this working with ng-submit aswell? If so what changes need to be made to support it?
I have tried something like this but without success:
window.onbeforeunload = function () {
$scope.$broadcast('busy.begin', {remaining: 0});
};
Any clue?
Thanks ! ;-)
This to prevent double submission ! ;-)
I tested it in FireFox 39.0 and it does not responde at all.
Sevensnake
this busy function overrides the ng-disabled.
if ng-disabled = false then when busy is done, ng-disabled get ignored.
I really like your library but I don't think it should be triggered by http requests (and as a result can't use it). It should use promises as then it's generic and can be used for many other things.
Sometimes HTTP requests have identifiers or querystrings so an exact match is not possible. Also, having to paste in the full URL or name is annoying, and it precludes the ability of having a default pattern for your app that you can set once.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.