Comments (7)
hi @egorlaw,
Can you give me a jsFiddle of the code that is causing the problem or detailed rep of the full controller might help.
from ngsweetalert.
hi @DannyMcwaves ,
I've managed to found the problem.
I loved the animated in css icons that sweetalert uses (like the Success one - with the check on the green circle) and i used it in side my template for the step of the form that is a "thank-you" kinda-like page. During the http async request (before going to that step) i pop out $uibModal.open and make a loading. After resolving the modal with $scope.$close i try to make the user awar of the successful transaction with an SweetAlert.swal, but the error would make the thing impossible.
What i've found is that NEVER USE any of the markup / classes that are sweet-alert native. Because it'll try to instantiate them as already existing on page and try to clean the mess. But there's no sweetalert on page so far - so it lauches the error.
My template had this element:
<div class="sweet-alert animate">
<div class="sa-icon sa-success animate" style="display: block;">
<span class="sa-line sa-tip animateSuccessTip"></span>
<span class="sa-line sa-long animateSuccessLong"></span>
<div class="sa-placeholder"></div>
<div class="sa-fix"></div>
</div>
</div>
This breaks the sweetalert behaviour. Probably any other part of the swal constructs as overlays and body or else - will break the stuff too.
Don't try this at home folks ;)
from ngsweetalert.
Hi @egorlaw
Great. I am very glad that you have fixed that.
I saw your profile and I realized you can code python. I was wondering if you have enough time,
so we can collaborate on this python project I am trying to work on.
If you have enough time, just let me know.
from ngsweetalert.
from ngsweetalert.
cool. Are you using angular 2, @egorlaw ??
from ngsweetalert.
from ngsweetalert.
Nice. If you have any projects on angular or angular 2 that you think you might need collaboration on, just let me know. If you have an understanding with angular 1, can you check this project I created, ngSocial in in my repo, and see if you can find any issues. Also I am following you, can you follow back?
from ngsweetalert.
Related Issues (20)
- ReferenceError: Can't find variable: "fieldset" in Chrome IPad IOS (input)
- Can't get the AJAX loader animation to work
- ngSweetAlert Website code wrong for "A message with a custom icon"
- publish latest version on NPM HOT 1
- custom width
- Need to changed "custom loader" instead of "3 dot loader" for "Load on Confirm"
- im getting /lib/ngSweetalert/SweetAlert.min.js” was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff).
- Wrong behaviour on iOS
- Any config provider? HOT 1
- issue with accented characters
- Fix the version of sweetalert HOT 8
- TypeError: swal is not a function HOT 5
- Sweet Alert v2 HOT 2
- Bower issues - Unable to get #79 revision
- how I can add click event inside text
- swal.mixin is not a function
- After click ok Button reload page
- Remove Ok Button in sweet alert
- /ngSweetAlert/SweetAlert.min.js” foi bloqueado devido ao tipo MIME (“text/html”) não coincidir com (X-Content-Type-Options: nosniff)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngsweetalert.