Video description
Becoming a fullstack developer is one of the best ways you can progress your career. Angular with TypeScript expands your Java programming skills by introducing you to the TypeScript language—a popular type-centric variation of JavaScript, central to Angular development. It builds on what you covered in the first course -- Creating a Simple Angular App, and relates all its examples to the Java programming language you’re familiar with. This approach makes it easy to expand your skills and learn TypeScript. In the second of a running series of five courses, you’ll learn the basics of the Typescript programming language, how to debug Angular applications, and how to write and run unit tests.
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. The Angular framework was written in TypeScript, and using TypeScript for Angular applications makes them easier to read and less prone to type mismatch errors.
about the video
Angular for Java Developers is a five-part course that teaches Java programmers how to use Angular and JavaScript to build applications that are maintainable, testable, and secure. In this Part Two, you’ll get to grips with TypeScript, the primary language for writing Angular apps. You’ll learn about classes and objects, how to use TypeScript for dependency injection, and how to write unit tests to ensure your apps are bug free!
Inside:
- Part 2 of 5 videos covering Angular frontends for Java applications
- Similarities and differences between Java and TypeScript
- Dependency injection
- Debugging Angular applications
- Writing unit tests for Angular applications
For viewers with basic Java experience.
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.
Table of Contents
- INTRODUCTION TO TYPESCRIPT
Introduction
00:01:52
Similarities to Java and the impact of TSLint
00:06:07
Data types and variables
00:03:36
Declaring variables
00:06:17
Working with Arrays
00:09:46
Loops and conditions
00:05:27
- CLASSES AND OBJECTS
Understanding Javascript objects
00:03:12
Creating classes
00:05:17
Class attributes
00:03:23
Constructors and methods
00:09:41
String templates
00:02:39
Some hints for debugging classes
00:02:53
Object equality
00:04:58
- ENUMS
Creating an enum
00:02:56
Looping through an enum
00:04:37
Enums with values
00:03:40
Retrieving a label from its value
00:05:06
- SERVICES AND DEPENDENCY INJECTION
What is a service
00:02:16
Creating a service
00:07:21
Dependency injection
00:03:12
Exercise 1 - dependency injection
00:01:29
Exercise 1 - solution walkthrough
00:02:40
- THE OBSERVER DESIGN PATTERN
The need for the observer design pattern
00:09:42
Introducing the pattern and creating an observer
00:04:54
Triggering an event, and creating an observer
00:07:47
Dealing with errors and the complete event
00:05:33
Unsubscribing an observer
00:03:04
Exercise 2 - observer design pattern
00:02:05
Exercise 2 - solution walkthrough
00:06:47
- DEBUGGING IN ANGULAR
Introduction to Debugging
00:01:04
Debugging with Visual Studio Code
00:05:12
Debugging with IntelliJ
00:04:44
- UNIT TESTING
Creating a Unit Test
00:05:57
Running a single test
00:03:58
Test evaluation methods
00:02:37
Fixing the app component tests
00:05:24
Testing behaviour
00:04:00
Testing components with service dependencies
00:09:18
Mocking services
00:13:21