marcorinck / angular-growl

growl-like notifications for angularJS projects
MIT License
478 stars 191 forks source link

Html message #5

Closed OndraM closed 10 years ago

OndraM commented 10 years ago

Sometimes HTML in message content could be useful, e.g. when using something like <strong> for message header, <a> for links in message etc.

This PR adds support to disable escaping, using new ngBindHtml (thus creating dependency on angular 1.2). The configuration is similar as for TTL - either global or on per-message basis.

marcorinck commented 10 years ago

Thats a nice idea, I like it!

However, I have 2 issues with it:

What do you think?

OndraM commented 10 years ago

I've renamed the property to enableHtml, that makes sense.

About the angular 1.2 dependency - it is not possible to write compatible code for both 1.0 and 1.2, as the directive name and also ngSanitize dependency has changed. So if you don't want to make dependency on rc2 version, than yes, it is ok to wait to 1.2 stable :).

bchatelard commented 10 years ago

:+1:

gustafnk commented 10 years ago

:+1:

OndraM commented 10 years ago

Hi, angular 1.2.0 was released over a week ago, and even 1.2.1 is out now. Any plans merging this PR and releasing new angular-growl version?

tschiela commented 10 years ago

+1 need that feature

marcorinck commented 10 years ago

Sorry for the delay, had a lot to do in the last weeks. I think an update will be ready this week. So stay tuned!

marcorinck commented 10 years ago

merged this just now and released v0.4.0