Connecting Angular to a REST Back End
Angular for Java Developers, Part 4
Matt Greencroft
  • Course duration: 3h 38m
In Angular for Java Developers Part Four: Connecting to a REST back end you’ll learn how to connect an Angular front end up with a Java (Spring Boot) based back end system using REST. You’ll also learn how to deal with slow and unavailable connections and deal with issues such as CORS for multiple-domain applications, how to set up a back end with Spring Boot, pre-processing data, and pre-fetching data.


Distributed by Manning Publications

This course was created independently by Angular expert Matt Greencroft and is distributed by Manning through our exclusive liveVideo platform.

About the subject

The Angular framework is used by millions of developers, powering frontends from simple prototypes to Google’s own web apps. Prized for its scalability, Angular also offers lightning fast speed and response times and the chance to reuse code for both web and mobile. Best of all, it can be integrated with backends built in Java.

About the video

Angular for Java Developers is a five course series that teaches Java programmers how to use Angular and JavaScript to build applications that are maintainable, testable, and secure. In Part Four, you’ll connect your front end to a back end system using REST. You’ll learn about environments, creating, configuring and testing a Spring Boot based REST API, and how to implement REST from Angular.
Table of Contents detailed table of contents

Setting up environments

Creating environment variables

How environments work

Creating our own environments

Selecting an environment to serve

Creating the REST API

Creating a rest method

Testing rest methods

Exercise 1 - creating rest methods

Exercise 1 - solution walkthrough

Adjusting the User object

Connecting to a REST endpoint

Initiating the call to a rest endpoint

Cross Original Resource Sharing (CORS)

Configuring CORS in Spring

Manipulating the REST return data type

Pre-processing the REST return data

Optional calling a rest endpoint exercise

Pre-processing complex data

Dealing with slow and unavailable connections

Dealing with slow REST responses

Catching REST errors

Investigating REST errors

Retrying when an error occurs

Surviving a page refresh

Exercise 2 - Dealing with slow and unavailble connections

Exercise 2 - Solution walkthrough

POSTing and PUTting data

Sending data via REST

Customising data with Javascript objects

Exercise 3 - Post and putting data

Exercise 3 - Solution walkthrough

Bug fixing

Template Expressions

Implementing DELETE

Completing the users component

Exercise 4 - Implementing REST from Angular

Exercise 4 - Solution walkthrough

Getting a confirmation before deleting

Pre-fecthing data

Setting up the edit booking functionality

The concept of pre-fectching data

Pre-fectching data with navigation and a service

Using a resolver

Module summary

Prerequisites

For viewers with basic Java experience.

What you will learn

  • The fourth course in the Angular for Java Developers series
  • Creating environment variables
  • Initiating the call to a rest endpoint
  • Configuring a Spring Boot REST endpoint to work well with Angular
  • Setting up your back end correctly with Spring Boot
  • Dealing with slow REST responses and catching errors
  • Customizing data with JavaScript objects
  • Pre-fetching data with navigation and a service

About the instructor

Matt Greencroft has over twenty years of experience as a programmer, primarily working in the banking sector. Matt now teaches for Virtual Pair Programmers. His specialties are Microservices, Spring Boot, Apache Spark and Kotlin.

placing your order...

Don't refresh or navigate away from the page.
liveVideo $19.99 $45.00
Connecting Angular to a REST Back End (liveVideo) added to cart
continue shopping
go to cart

Prices displayed in rupees will be charged in USD when you check out.