halfmoonui/halfmoon

3rd party alerts not working

shapedthought opened this issue · 1 comments

Hi there,

I'm trying out halfmoon in Angular, good so far but I'm hit a problem with it comes to alerts. SweetAlert2, Angular-Notifier, primeng don't work for some reason, They don't error but none of them show anything when triggered.

I've even brought in the halfmoon sticky alerts, but they fail as they directly update the DOM which Angular doesn't like.
ERROR TypeError: Cannot read property 'insertBefore' of undefined
at Object.initStickyAlert (halfmoon-module.js:225)
at LoginComponent.halfmoonAlert (login.component.ts:37)
at SafeSubscriber._next (login.component.ts:70)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:183)
at SafeSubscriber.next (Subscriber.js:122)
at Subscriber._next (Subscriber.js:72)
at Subscriber.next (Subscriber.js:49)
at CatchSubscriber._next (Subscriber.js:72)
at CatchSubscriber.next (Subscriber.js:49)
at MapSubscriber._next (map.js:35)

Do you have any recommendations on how to get any sort of alert working with Angular?

Thanks

Hi @shapedthought It looks like halfmoon is not in active development. I had created an active clone named Fullmoon. Please refer to #116 (comment) for more info.

You can report any issues here. You can help us to develop angular falvour of Fullmoon.