JanStevens / angular-growl-2

growl-like notifications for angularJS projects
MIT License
285 stars 97 forks source link

Is dynamic reference supported ? #99

Open hugsbrugs opened 8 years ago

hugsbrugs commented 8 years ago

Hi there,

I'm trying to implement dynamic growl notification in an ng-repeat loop so my code looks like :

<div growl="inline" reference="solution-comment-{{solution.id}}"></div>
growl.success('SUCCESS_SAVING_COMMENT', {referenceId: 'solution-comment-'+solution_id , ttl: 5000});

But notifications are displayed in the general growl container and not the inline one. Is this feature supported and if yes could you please point me where my error is ?

flaviocysne commented 8 years ago

reference directive attribute has already been defined as "@", so this issue may be resolved.

@hugsbrugs could you check this? If it isn't resolved yet, could you provide an example on CodePen or Plunkr to help tracking the problem?

hugsbrugs commented 8 years ago

Hey, I've been using uib-alert instead of growl in case of multiple inline notifications and I unfortunately doesn't have time to test something I won't use right now, sorry, thanks for support

flaviocysne commented 8 years ago

Code sample created: http://codepen.io/flaviocysne/pen/yJyOBg

Issue has not been resolved yet. Maybe because angular-growl-2 angular directive is not declared as element (restrict: 'E').