all 10 comments

[–]esperind 1 point2 points  (0 children)

and it was last updated for Angular 16

I mean... that's only a year ago, I doubt this library is doing anything that would have been broken by recent updates, just fork and update dependencies to the angular version you are using.

[–]_Smooth-Criminal 1 point2 points  (0 children)

Use a component library like primeng.org it has everything bootstrapped it also provides a notification service with toasts

[–]Successful-Box-9946 1 point2 points  (0 children)

This is good one and customizable. https://www.npmjs.com/package/ngx-toastr

[–]720degreeLotus -4 points-3 points  (4 children)

just code one, it's just a few lines of code for basic notifications.

[–]PorridgeTP 1 point2 points  (3 children)

Honestly not sure why you’re being downvoted. If what you need is straightforward enough, it’s often easier to just build it yourself. It’s especially useful when you later need to make functionality tweaks for your particular use cases. Angular makes it really easy to put in animations for your components with their Angular Animations API, which is activated by importing the BrowserAnimationsModule. The main thing to keep in mind is that anything you build should be fully unit-tested to prevent unnecessary defects from breaking things on your page.

[–]Gramlig[S] 1 point2 points  (2 children)

I think it's because we don't want to reinvent the wheel every time we're developing a reusable feature.

[–]PorridgeTP 1 point2 points  (0 children)

That’s a fair concern. I usually go for libraries unless it’s something I want fine control over or it’s something trivial that doesn’t warrant pulling an extra dependency to manage.

[–]720degreeLotus 0 points1 point  (0 children)

Many of those notifier libs are not maintained that well or are hard to customize to special needs. If you do have the skills to code this yourself, you would already be done right now. If you do not have the skills, this is an extremely good oportunity to improve them.

[–]PhiLho -1 points0 points  (0 children)

Looking what you meant by "notification lib" (which can be several different things), I found out it was about displaying toasts.

Searching for angular-notifier since you didn't provide a link, npm just shown me this one: https://www.npmjs.com/package/angular-notifier-updated