Closed sagargulati closed 8 years ago
You need to cache (in templateCache) those templates or you will get than error. Are those templates custom your the default ones?
Those are the default ones, how do i cache the templates?
Thanks!
Use the .tpls.js file that contains those. Also, you don't need to add the default values again in the config, just use it to override the ones you need.
Can you tell me how to do that? I am new to angularjs. I mean where to put the files, where and what to edit in the configuration? That will be really helpful.
Thanks!
For now then, delete that config and where you import toastr.js import toastr.tpl.js
Removing template directive, changing .js to tpl.js? It worked, thanks :+1:
B/W What about $templateCache you told me?
That is an angular service that caches the template for you, so you don't need to request them to the server. Here is the docs: https://docs.angularjs.org/api/ng/service/$templateCache
I saw that but i am asking how to use that in my condition of the app?
Sorry, this goes really outside the purpose of this issue tracker.
Ok thanks :)
Angular 1.5.3
Getting this error when the first toast is called, after we have to click the toast to disable it, the it works fine.
Please help!