We're offering 20% off September Live Online classes! See which courses are applicable.   |   Details >

  
AccountIcon BigDataIcon BlogIcon default_resource_icon CartIcon checkmark_icon cloud_devops_icon computer_network_admin_icon cyber_security_icon gsa_schedule_icon human_resources_icon location_icon phone_icon plus_icon programming_software_icon project_management_icon redhat_linux_icon search_icon sonography_icon sql_database_icon webinar_icon

Search UMBC Training Centers

Programming

Comprehensive Angular 4 Programming

+ View more dates & times
    
    
    
    
                     
  • Overview

    Comprehensive Angular 4 training covers all major topics required to fully use this next generation of the Angular framework. Angular 4 makes the creation of single page applications even easier that before. In this course developers will learn to use Angular Directives and to create Angular Components and Services to develop applications based on the Model-View-Controller (MVC) architecture. You will learn to use HTML Templates to define views and to connect views with code using output, two-way, event and property bindings. The course reviews the benefits and challenges of Single Page Applications and how to overcome those challenges using the Angular Router. The course also covers everything you need to know about Typescript – a programming language based on JavaScript that is used to create Angular 4 applications.

    In addition to the basics of using the Angular 4 framework, you will also learn advanced topics not covered in our 3 day Introduction to Angular 4 Programming class.  This includes specifics about how to consume REST web services and WebSocket data from Angular 4 applications.  Advanced use of the Angular Routing module and Angular Animations are covered.  You will learn how to develop Angular 4 applications using AngularCLI.  Details of how to test and debug Angular 4 applications are covered in addition to best practices for the style and organization of Angular 4 projects.

    Topics covered include:

    • Create single page web applications using the MVC pattern of Angular
    • Understand how write and organize Angular code
    • Program Angular View Components and Services
    • Use Angular output, two-way, event and property bindings
    • Exchange data with network servers using the Angular HTTP Client
    • Consume data from REST web services
    • Consume WebSocket data
    • Work with Angular Pipes to format data
    • Create and work with Angular Forms
    • Angular Component Router
    • Advanced Router Usage
    • Angular Animations
    • Testing and debugging Angular applications
    • AngularCLI
    • Best practices for Angular application style and organization
  • Who Should Take This Course

    PREREQUISITES

    Students should have some prior understanding of web development using, HTML, CSS and JavaScript. Experience developing with AngularJS or Angular 2 (the prior versions) is not required.

  • Schedule
  • Course Outline

    CHAPTER 1 – INTRODUCING ANGULAR

    • What is Angular?
    • Central Features of the Angular Framework
    • Why Angular?
    • Scope and Goal of Angular
    • Angular vs. AngularJS
    • But Isn’t It “Angular 2”?
    • Installing and Using Angular
    • Adding Angular and Dependencies to Your App
    • Building Blocks of an Angular Application
    • A Basic Angular Application
    • Basic App – index.html
    • Basic-App: Application Module File
    • Basic-App: Main Bootstrap File
    • Basic-App: The Component File
    • Major Changes in Angular 4
    • Summary

    CHAPTER 2 – DEVELOPMENT SETUP OF ANGULAR

    • Angular is Modular
    • Managing Angular Files and Dependencies
    • What is Node.js?
    • Application of Node.js
    • Installing Node.js and NPM
    • “Hello World!” Node app
    • Node Libraries
    • Node Package Manager (NPM)
    • Package.json
    • Semantic Version Numbering
    • Package Version Numbering Syntax
    • Updating Packages
    • Uninstalling Packages
    • Installing Angular Packages
    • Angular CLI
    • Angular Development Overview
    • Angular Development Dependencies
    • TypeScript Definitions
    • Testing Tools
    • Development Servers
    • Angular Application Dependencies
    • Module Loaders
    • SystemJS Module Loader
    • WebPack Module Bundler
    • Additional Application Dependencies
    • Summary

    CHAPTER 3 – INTRODUCTION TO TYPESCRIPT AND ES6

    • Programming Languages for Use with Angular
    • TypeScript Syntax
    • Programming Editors
    • The Type System – Defining Variables
    • The Type System – Defining Arrays
    • The Type System – Classes & Objects
    • Class Constructors
    • Class Constructors – Alternate Form
    • Interfaces
    • Parameter and Return Value Types
    • Working with Modules
    • TypeScript Transpilation
    • var, let and const – Defined
    • var, let and const – Usage
    • Arrow Functions
    • Template Strings
    • Template Strings – Variables and Expressions
    • Template Strings – Multiline
    • Generics – Class
    • Generics – Methods
    • Generics – Restricting Types
    • Generics – Restricting Types: Example
    • Summary

    CHAPTER 4 – COMPONENTS IN ANGULAR

    • What is a Component?
    • An Example Component
    • Component Starter
    • Developing a Simple Login Component
    • Login Component: Add HTML
    • The HTML Component Template
    • The templateUrl property
    • Login Component: Add CSS Styling
    • Login Component: Hook Up Input Fields and Button
    • Login Component: Fields & Button in the Component Class
    • Component Decorator Properties
    • Component Lifecycle Hooks
    • Using a Lifecycle Hook: OnInit
    • Summary

    CHAPTER 5 – DATA AND EVENT BINDING

    • Binding Syntax
    • One-Way Output Binding
    • Binding Displayed Output Values
    • Two-Way Binding of Input Fields
    • Input Binding Examples
    • Binding Events
    • Binding Events Examples
    • Setting Element Properties
    • Setting Properties: Examples
    • Passing Data into Components using @Input()
    • Passing Data from Child to Parent using @Output()
    • @Output() Example – Child Component
    • @Output() Example – Parent Component
    • Summary

    CHAPTER 6 – ATTRIBUTE DIRECTIVES AND PROPERTY BINDINGS

    • What are Directives
    • Directive Types
    • Apply Styles by Changing Classes
    • Changing Classes – Example
    • Applying Styles Directly
    • Applying Styles Directly – Example
    • Obsolete Directives and Property Binding
    • Controlling Element Visibility
    • Setting Image Source Dynamically
    • Setting Hyperlink Source Dynamically
    • Summary

    CHAPTER 7 – STRUCTURAL DIRECTIVES

    • Structural Directives
    • Adding and Removing Elements Dynamically
    • If-Else Syntax of ngIf
    • Declare Variables in ngIf
    • Looping Using ngFor
    • ngFor – Basic Syntax
    • ngFor – Full Template Syntax
    • Creating Tables with ngFor
    • ngFor Local Variables
    • ngFor Changes in the backing data source
    • Swapping Elements with ngSwitch
    • ngSwitch – Basic Syntax
    • ngSwitch – Full Template Syntax
    • Summary

    CHAPTER 8 – TEMPLATE DRIVEN FORMS

    • Template Driven Forms
    • Importing Forms Module
    • A Basic Angular Form
    • Binding Input Fields
    • Accessing the Form Object
    • Binding the Form Submit Event
    • The Submit Function
    • Basic HTML5 Validation – “required” Attribute
    • HTML5 vs. Angular Validation
    • Angular Validators
    • Angular Validation State
    • Displaying Form Validation State
    • Displaying Field Validation State
    • Displaying Validation State Using Classes
    • Disabling Submit when Form is Invalid
    • Submitting the Form
    • Binding to Object Variables
    • Additional Input Types
    • Checkboxes
    • Select (Drop Down) Fields
    • Rendering Options for Select (Drop Down)
    • Date fields
    • Radio Buttons
    • Summary

    CHAPTER 9 – MODEL DRIVEN FORMS

    • Model Driven Forms Overview
    • Setup for Model Driven Forms
    • Form Component Setup
    • Setup Main FormGroup
    • formControlName
    • FormControl Object
    • Getting Form Values
    • FormBuilder Form Initialization
    • Validation
    • Built-In Validators
    • Custom Validator
    • Using a Custom Validator
    • Useful FormGroup and FormControl Properties/Functions
    • Sub FormGroups – Component Class
    • Sub FormGroups – HTML Template
    • Why Use Sub FormGroups
    • Summary

    CHAPTER 10 – ANGULAR MODULES

    • Why Angular Modules?
    • Angular Built-in Modules
    • The Root Module
    • How to Create a Module
    • Feature Modules
    • @NgModule Properties
    • Using One Module From Another
    • Importing BrowserModule or CommonModule
    • Lazy-Loaded Modules
    • How to Organize Modules?
    • Relative Paths for Resources
    • Summary

    CHAPTER 11 – SERVICES AND DEPENDENCY INJECTION

    • What is a Service?
    • Creating a Basic Service
    • What is Dependency Injection?
    • What Dependency Injection Looks Like
    • Injecting Services
    • Dependency Injection Hierarchy Diagram
    • Using a Service in a Component: Dedicated Instance
    • Injection Hierarchy – Dedicated Instance
    • Using a Service in a Component: Dedicated Instance – Example Code
    • Using onInit to Initialize Component Data
    • Using a Shared Service Instance
    • Injection Hierarchy – Shared Instance
    • Dependency Injection and @Host
    • Dependency Injection and @Optional
    • Summary

    CHAPTER 12 – HTTP CLIENT

    • The Angular HTTP Client
    • Using The HTTP Client – Overview
    • Importing HttpModule
    • Importing Individual Providers into Services
    • Service Using Http Client
    • Service Imports
    • The Observable object type
    • What does an Observable Object do?
    • Making a Basic HTTP GET Call
    • Using the Service in a Component
    • The PeopleService Client Component
    • Client Component Code Review
    • Importing Observable Methods
    • Enhancing the Service with .map() and .catch()
    • Using .map()
    • Using .catch()
    • Using toPromise()
    • GET Request
    • GET Request with Options
    • POST Request
    • POST Request Example
    • Reading HTTP Response Headers
    • Summary

    CHAPTER 13 – CONSUMING REST WEB SERVICES IN ANGULAR

    • REST Web Services and Angular
    • Understanding REST
    • REST Example – Create
    • REST Example – Retrieve
    • REST Example – Update
    • REST Example – Delete
    • REST Example – Client Generated ID
    • REST Example – JSON
    • Knowledge of the REST API
    • Common Angular Tasks for REST Communication
    • Angular Service Class Using HTTP Client
    • RequestOptions
    • URL Path Parameters
    • Query Parameters
    • Common HTTP Request Headers
    • Override Default Request Options
    • Returning Response Data
    • DELETE
    • GET
    • PUT
    • POST
    • Security of REST APIs
    • Summary

    CHAPTER 14 – CONSUMING WEBSOCKETS DATA IN ANGULAR

    • Web Sockets Overview
    • Web Sockets Use Cases
    • Web Socket URLs
    • Web Sockets Servers
    • Web Socket Client
    • The socket.io-client library
    • Using socket.io-client in JavaScript
    • Setting up socket.io-client in Angular Projects
    • Using socket.io-client in an Angular service
    • Angular websocket.service Notes:
    • The Angular Web Socket Client Sample App
    • Angular websocket.component.ts
    • The Full websocket.component.ts code
    • Implementation Modifications
    • Summary

    CHAPTER 15 – PIPES AND DATA FORMATTING

    • What are Pipes?
    • More on Pipes
    • Formatting Changes in Angular
    • Using a Built-in Pipe
    • Built-In Pipes
    • Using Pipes in HTML
    • Chaining Pipes
    • Using Pipes in JavaScript
    • Some Pipe Examples
    • Decimal Pipe
    • CurrencyPipe
    • Custom Pipes
    • Custom Pipe Example
    • Using Custom Pipes
    • A Filter Pipe
    • A Sort Pipe
    • Pipe Category: Pure and Impure
    • Pure Pipe Example
    • Impure Pipe Example
    • Summary

    CHAPTER 16 – INTRODUCTION TO SINGLE PAGE APPLICATIONS

    • What is a Single Page Application (SPA)
    • SPA Workflow
    • Traditional Web Application Capabilities
    • Single Page Application Advantages
    • SPA and Traditional Web Sites
    • SPA Challanges
    • Implementing SPA’s Using Angular
    • Simple SPA Using Visibility Control
    • SPA Using Angular Components
    • SPA with Angular Components – Switching
    • SPA with Angular Components – The Displayed Component
    • Implement SPA Using an Angular Component Router
    • Summary

    CHAPTER 17 – THE ANGULAR COMPONENT ROUTER

    • Routing and Navigation
    • The Component Router
    • Traditional Browser Navigation
    • Component Router Terminology
    • Setting up the Component Router
    • Local URL Links
    • Browser pushState and <base href>
    • Routes
    • The app.routes.ts File
    • The app.routes.ts File – Example
    • Importing Routing in app.module.ts
    • A Basic App With Routing
    • App Routes
    • AppComponent – Code
    • AppComponent – Router Related Features
    • AppComponent – <router-outlet>
    • AppComponent – routerLinks
    • Programmatic Navigation
    • Basic Navigation
    • Passing Data During Navigation
    • Creating Routes with Route Parameters
    • Navigating with Route Parameters
    • Using Route Parameter Values
    • Retrieving the Route Parameter Synchronously
    • Retrieving a Route Parameter Asynchronously
    • Query Parameters
    • Query Parameters – Example Component
    • Query Parameters – queryParams
    • Query Parameters – Navigation
    • Retrieving Query Parameters Asynchronously
    • Problems with Manual URL entry and Bookmarking
    • Fixing Manual URL entry and Bookmarking
    • Summary

    CHAPTER 18 – ADVANCED ROUTING

    • Routing Overview
    • External Route Configuration File
    • Dedicated Router Module
    • routerLinkActive binding
    • Wildcard Route Path
    • redirectTo
    • Default Route
    • Child Routes
    • Defining Child Routes
    • <router-outlet> for Child Routes
    • routerLink Prefixes
    • Invoking Child Routes
    • Lazy Loading Modules via Child Routes
    • Lazy Loading: The child routing module
    • Lazy Loading: Add routing to the module
    • Lazy Loading: Update the main routing file
    • Navigation Guards
    • Creating Guard Implementations
    • Using Guards in a Route
    • Route Animations
    • Summary

    CHAPTER 19 – ANGULAR ANIMATIONS

    • What is Animation?
    • Animation Configuration
    • Animation Techniques
    • Animation Concepts
    • CSS Property Animation
    • Animation Property Settings
    • CSS Transforms
    • Starting and Stopping Animation
    • Animation Events
    • Browser Support
    • Angular Animations
    • Animation Imports
    • Named Animation States
    • Transitions
    • Special States: void, *
    • The animate() function
    • Triggers
    • Assigning Animations to Elements using Trigger
    • Invoking Transitions
    • Assigning Animation to Routes
    • External Animation Definitions
    • Summary

    CHAPTER 20 – TESTING ANGULAR COMPONENTS AND SERVICES

    • Testing Angular Components
    • Testing Tools
    • Testing Setup
    • Important Test Configuration Settings
    • Typical Testing Process
    • Jasmine Test Suites
    • Jasmine Specs (Unit Tests)
    • Expectations (Assertions)
    • Matchers
    • Examples of Using Matchers
    • Using the not Property
    • Setup and Teardown in Unit Test Suites
    • Example of beforeEach and afterEach Functions
    • Angular TestBed
    • Typical Test Structure
    • Example of Basic Angular Test
    • Basic beforeEach Configuration
    • Automatically Detecting Component Changes
    • Testing External Templates
    • Testing Components With Dependencies
    • Getting Injected Services
    • Testing With Dependencies – Test Double
    • Testing With Dependencies – Spy
    • Testing With Asynchronous Dependencies
    • Testing Components With @Input and @Output
    • Testing Routed Components
    • Summary

    CHAPTER 21 – DEVELOPING USING ANGULARCLI

    • What is AngularCLI?
    • AngularCLI Prerequisites
    • Installing AngularCLI
    • Command Help
    • Creating an App
    • Running Angular CLI Apps with ng serve
    • ng serve options
    • AngularCLI Blueprints
    • Generating Components
    • The .angular-cli.json Settings File
    • Generated Modules
    • Generated Services
    • Generated Specs for Unit Testing
    • An Example Unit Test Spec
    • Running Unit Tests
    • End to End Testing
    • Example End to End Test:
    • Summary

    CHAPTER 22 – DEBUGGING

    • Debugging Overview
    • Basic Debugging Practices
    • Development (Debug) Mode
    • Selecting Elements to Inspect
    • Inspecting Angular Components with ng.probe
    • Saving ng.probe Component References
    • Modifying Values using Component References
    • Using Breakpoints in Angular Code
    • Breakpoint in TypeScript Code
    • What is Augury?
    • Installing Augury
    • Opening Augury
    • Augury – Component Tree
    • Augury – Router Tree.
    • Augury – NgModules Tab
    • Common Exceptions
    • Common Exceptions: ‘No such file: package.json’
    • Common Exceptions: ‘Cant bind to ngModel’
    • Common Exceptions: ‘router-outlet not a known element’
    • Common Exceptions: ‘No provider for Router!’
    • Summary

    CHAPTER 23 – ANGULAR STYLE GUIDE

    • What is the Angular Style Guide?
    • Style Categories
    • Single Responsibility
    • Naming
    • Coding Conventions
    • App Structure and Angular Modules
    • Components
    • Directives and Services
    • Summary

    APPENDIX A – OVERVIEW OF JSON WEB TOKENS (JWT)

    • RESTful Web Service API Refresher
    • JSON Web Tokens
    • JSON Web Token Architecture
    • JWT Header
    • JWT Payload
    • JWT Example Payload
    • JWT Example Signature
    • How JWT Tokens are Used
    • Adding JWT to HTTP Header
    • How The Server Makes Use of JWT Tokens
    • What are “Scopes”?
    • What About OAuth?
    • Summary

    LAB EXERCISES

    Lab 1. Introduction to Angular
    Lab 2. Introduction to TypeScript
    Lab 3. Introduction to Components
    Lab 4. Create the Subscription Form Component
    Lab 5. Understanding Data Binding
    Lab 6. One Way Data Binding in a Custom Component
    Lab 7. Using Basic Angular Directives
    Lab 8. Using Structural Directives
    Lab 9. Template Driven Form
    Lab 10. Validation of a Template Driven Form
    Lab 11. Model Driven Form
    Lab 12. Service and Dependency Injection
    Lab 13. HTTP Client Development
    Lab 14. Angular Communication with REST Services
    Lab 15. Consuming Data from Web Sockets
    Lab 16. Using Pipes
    Lab 17. Basic Single Page Application Using Router
    Lab 18. Advanced Routing
    Lab 19. Angular Animations
    Lab 20. Testing Angular Components
    Lab 21. Debugging Angular Applications

  • FAQs
    Is there a discount available for current students?

    UMBC students and alumni, as well as students who have previously taken a public training course with UMBC Training Centers are eligible for a 10% discount, capped at $250. Please provide a copy of your UMBC student ID or an unofficial transcript or the name of the UMBC Training Centers course you have completed. Online courses are excluded from this offer.

    What is the cancellation and refund policy?

    Student will receive a refund of paid registration fees only if UMBC Training Centers receives a notice of cancellation at least 10 business days prior to the class start date for classes or the exam date for exams.

Contact Us