mouse0270 / bootstrap-notify

Turns standard Bootstrap alerts into "Growl-like" notifications.
http://bootstrap-notify.remabledesigns.com/
MIT License
2.25k stars 642 forks source link

Feature Request: Ability to load template from remote URL #148

Open maxwellgerber opened 8 years ago

maxwellgerber commented 8 years ago

It would be nice to have baked in support for loading a template from a remote URL. Eg. $.notify({messge:"This is from a remote template!"}, {templateURL: "./partials/alert-lg.html"}

sneik108 commented 6 years ago

Did you find a decision for this issue?

maxwellgerber commented 6 years ago

IIRC (this was for an internship project a few years ago), I forked my own copy of the repo and added the code myself. I think I really wanted the templateURL param because that's kinda similar to what Angular 1.x let you do, which was the only frontend tool I was familiar with at the time. Looking back, it's ridiculous to start putting HTTP requests in this lib, it would be much more straightforward to have the user make a request to the URL and then instantiate the notification afterwards.