Skip to content

Commit afd37a0

Browse files
committed
chore(release): release 0.4.0
1 parent e850a42 commit afd37a0

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Version 0.4.0
4+
5+
- You can add HTML on the toastr titles.
6+
- You can now override the toast's template.
7+
- Fix issue using toastr with ionic.
8+
39
## Version 0.3.0
410

511
- Now the toasts supports a close button.

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,20 @@ There you can override:
205205
* **titleClass**: To override the title class of the toast.
206206
* **toastClass**: For the main toast class.
207207

208+
### Toast template
209+
210+
You can also override the toast template. To do that, put a template on your template cache like:
211+
212+
```javascript
213+
angular.module('yourApp').run(['$templateCache', function($templateCache) {
214+
$templateCache.put('templates/toastr/toastr.html',
215+
"<div>Your template here</div>"
216+
);
217+
}]);
218+
```
219+
220+
The important part here is to have a key named `templates/toastr/toastr.html`. The module you run it is not important, you just need to do it after you load `toastr`.
221+
208222

209223
## Building
210224

@@ -242,4 +256,4 @@ All the credits for the guys at [CodeSeven/toastr](https://github.com/CodeSeven/
242256

243257
## License
244258

245-
Mit License: [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)
259+
Mit License: [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)

0 commit comments

Comments
 (0)