Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bug on cordova accessing template via $http on local file:// ,issues with .then().catch(), $templateCache fixes. #108

Merged
merged 10 commits into from
Jan 7, 2017

Conversation

MikhailRoot
Copy link
Contributor

  • fixed bug on cordova accessing template via $http on local file://
    we really don't need to load default template via $http service - now using $templateCache directly as we preload it in our module.
  • updated dependencies

MikhailRoot and others added 9 commits December 12, 2016 22:15
+ fixed bug on cordova accessing template via $http on local file://
+updated dependencies
substituted with proper .then with callbacks
Now we can call Notification({message:'message here!',type:'success'}),
along with old synthax Notification('message here!','success');
fixing custom template loading
done to have same tag for 0.3.3 version with angular 1.5.9 or above
dependency.
@MikhailRoot MikhailRoot changed the title fixed bug on cordova accessing template via $http on local file:// fixed bug on cordova accessing template via $http on local file:// ,issues with .then().catch(), $templateCache fixes. Dec 23, 2016
@edgaraskazlauskas
Copy link

Good job!

@@ -145,7 +160,7 @@ angular.module('ui-notification').provider('Notification', function() {

setCssTransitions('none');

angular.element(document.querySelector(args.container)).append(templateElement);
angular.element(document.getElementsByTagName('body')).append(templateElement);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this now using the body?
What if I want to use the notification inside a modal? I prefer the flexibility of providing my own selector.

And just FYI, you can get the body using document.body

Copy link
Contributor Author

@MikhailRoot MikhailRoot Dec 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for insight, but I havent changed this line by myself. What i've done is dealing with Template loading. I'll just fix it as you've adviced. Thank you.
UPD: Fixed.

@mleanos
Copy link

mleanos commented Jan 2, 2017

LGTM. I've verified this fixes the issue.

Would love to have this merged!

@MikhailRoot Thank you for the solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants