Book Image

Building Web Apps with Spring 5 and Angular

By : Ajitesh Kumar Shukla
Book Image

Building Web Apps with Spring 5 and Angular

By: Ajitesh Kumar Shukla

Overview of this book

Spring is the most popular application development framework being adopted by millions of developers around the world to create high performing, easily testable, reusable code. Its lightweight nature and extensibility helps you write robust and highly-scalable server-side web applications. Coupled with the power and efficiency of Angular, creating web applications has never been easier. If you want build end-to-end modern web application using Spring and Angular, then this book is for you. The book directly heads to show you how to create the backend with Spring, showing you how to configure the Spring MVC and handle Web requests. It will take you through the key aspects such as building REST API endpoints, using Hibernate, working with Junit 5 etc. Once you have secured and tested the backend, we will go ahead and start working on the front end with Angular. You will learn about fundamentals of Angular and Typescript and create an SPA using components, routing etc. Finally, you will see how to integrate both the applications with REST protocol and deploy the application using tools such as Jenkins and Docker.
Table of Contents (18 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Debugging Angular app


In this section, you will learn how to debug an Angular app using browsers such as Firefox and Chrome and tools such as Augury. Augury is a Google Chrome extension which can be used for debugging Angular apps.

Debugging Angular app using Firefox and Chrome

The following steps need to be taken to debug an app using Firefox:

  1. Use Ctrl + Shift + I to open the Firefox Developer Tools window. The following screenshot represents the same:

Figure 8. Debugging an Angular app using Firefox

  1. Click on Debugger to open the code section vis-a-vis the related file in which the code resides.
  2. Open up the file where the code which needs to be debugged exists. In the preceding screenshot, doctor.service.js is used for debugging data retrieval from the server.
  3. Add one or more breakpoints. The green-colored line in the preceding screenshot represents the breakpoint in the doctor.service.tjs file.
  4. Refresh the page, the rendering of which will involve the component/service which needs to be debugged...