Reader small image

You're reading from  Angular Design Patterns and Best Practices

Product typeBook
Published inFeb 2024
Reading LevelIntermediate
PublisherPackt
ISBN-139781837631971
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Alvaro Camillo Neto
Alvaro Camillo Neto
author image
Alvaro Camillo Neto

Alvaro is a software engineer, speaker and instructor in Brazil. He works in the technology industry for over 10 years dedicated to the development of business solutions in a large company in the industry. Alvaro is a technology enthusiast and sees knowledge sharing as an opportunity to help the community that helped him so much and the best way of learning. He has performed from small meetups to large events focusing on the themes of developing web solutions. He also shares knowledge on his blog and participates in the organization of AngularSP.
Read more about Alvaro Camillo Neto

Right arrow

Notifying success

In addition to the loading screen to inform the user that the system is looking for the information they want, it is important to notify the user after processing an item. We can handle this notification directly from the service or component, but we can also implement it generically and implicitly using interceptors.

We will refactor our application to add this treatment. But first, let’s install a library to show the toaster component on the screen with an animation. In the command line of our operating system, we will use the following command in the main folder of our frontend project:

 npm install ngx-toastr

In order for the package to work, we need to add our CSS to our project by editing the angular.json file:

. . .
  "build": {
    . . .
      "assets": [
      "src/favicon.ico",
      "...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Angular Design Patterns and Best Practices
Published in: Feb 2024Publisher: PacktISBN-13: 9781837631971

Author (1)

author image
Alvaro Camillo Neto

Alvaro is a software engineer, speaker and instructor in Brazil. He works in the technology industry for over 10 years dedicated to the development of business solutions in a large company in the industry. Alvaro is a technology enthusiast and sees knowledge sharing as an opportunity to help the community that helped him so much and the best way of learning. He has performed from small meetups to large events focusing on the themes of developing web solutions. He also shares knowledge on his blog and participates in the organization of AngularSP.
Read more about Alvaro Camillo Neto