Skip to content

3rd party alerts not working #115

Open
@shapedthought

Description

@shapedthought

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    v1Version 1.x.x

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions