wzr1337 / angular-gestures

AngularJS directive that adds support for multi touch gestures to your app. Based on hammer.js.
MIT License
509 stars 100 forks source link

Add the template path to the toastrConfig constant #37

Closed robertsoniv closed 9 years ago

robertsoniv commented 9 years ago

It would be really nice if the template path were configurable rather than hard coded. I use an html2js build process that puts templates in the $templateCache based on directory structure. While using .run to add my custom template to the hard coded location works; I'd like my "alerts" module directory to have an alerts.tpl.html file that gets swallowed up by my build process and then is recognizable by angular-toastr through something like this

angular.extend(toastrConfig, { templatePath:'alerts/alerts.tpl.html'})
robertsoniv commented 9 years ago

Wow, I'm sorry - wrong repository.

wzr1337 commented 9 years ago

:)

On Tuesday, March 24, 2015, Robert Watt notifications@github.com wrote:

Wow, I'm sorry - wrong repository.

— Reply to this email directly or view it on GitHub https://github.com/wzr1337/angular-gestures/issues/37#issuecomment-85640977 .