SlideShare a Scribd company logo
Angular, the new AngularJS
By Matthew Gardner
Matthew Gardner
Frontend Developer
● Been with Kenzan for 4 years
● In free time I enjoy playing the guitar and listening to music
● Have been experimenting with Angular since RC stage
● Created a website for my mom in Angular v2
● Have been developing an Angular app using spotify API
Kenzan
▪ Full Service Consulting Firm
▪ Architecture, front and back end development, business analysis and DevTest.
▪ Cloud Virtualization Experts And Enablers
▪ AWS, Netflix stack, Kubernetes, Istio, enterprise architecture and beyond.
▪ DevOps Leadership
▪ Platform builds, continuous delivery and scalable resourcing.
What we will cover today
▪ Differences between Angular and AngularJS
▪ What is Angular?
▪ Core concepts of Angular
▪ Major changes from Angular v2 - v6
▪ Life cycle methods
▪ Brief overview of TypeScript
▪ Brief overview of RxJS
▪ Configuration to Angular
▪ Angular CLI
▪ What is next for Angular
▪ Demo of Angular spotify app and site for my mom
Examples of differences between
Angular and AngularJS
AngularJS vs Angular two way data binding
AngularJS Angular
https://codepen.io/mgarnder/pen/jpZGmP - AngularJs
https://codepen.io/mgarnder/pen/KBQXRM - Angular
AngularJS vs Angular Services
AngularJS Angular
https://codepen.io/mgarnder/pen/djdZvB - AngularJS
https://github.com/mrgardner/Angular2ServiceExample - Angular
AngularJS vs Angular Components
AngularJS Angular
https://codepen.io/mgarnder/pen/oMEqGr - AngularJS
https://codepen.io/mgarnder/pen/KBQoeQ - Angular
What is Angular?
What is Angular?
▪ A completely rewritten framework based on some of the concepts in AngularJS
▪ Does not include concept of “scope” or “controllers” instead it uses a hierarchy of
components
▪ Modularity
▪ Typescript
▪ Asynchronous template compilation
Main Features of Angular
▪ Cross Platform
▪ Speed and Performance
▪ Productivity
▪ Full Development story
Cross Platform
▪ Progressive Web Apps
▪ Allows developer to use modern web platforms to deliver an app-like experience
▪ Native
▪ Build native mobile apps with strategies from Cordova, Ionic, or NativeScript
▪ Desktop
▪ Create desktop app on Mac, Windows, and Linux
Speed and Performance
▪ Code Generation
▪ Angular turns the templates into highly optimized Javascript code
▪ Universal
▪ Serve the first view of your app on Node.JS, .NET, PHP, and other servers
▪ Code Splitting
▪ Angular apps load quicker with new Component Router which only loads code required to
render
Productivity
▪ Templates
▪ Create UI views with ease
▪ Angular CLI
▪ Command line tool that allows you to create your app, create components, test, and serve
your app
▪ IDEs
▪ Code completion, error messages, and other feedback from popular editors
Full Development Story
▪ Testing
▪ Has Karma built into framework for Unit tests and Protractor for End to End tests
▪ Animation
▪ Angular library that allows you to add simple or complex animation to your app
▪ Accessibility
▪ Create accessible apps with AIRA-enabled components, developer guides, and built-in a11y
test infrastructure
Core Concepts of Angular
What is two way data binding
▪ When properties in the model gets updated it is also updated in the UI
▪ When the UI gets updated, the changes get propagated back to the model
▪ One of the biggest features in Angular and AngularJS
Example of two way data binding
Ng template
▪ Is an Angular template
▪ Is used in Angular under the hood when using
▪ *ngFor
▪ *ngIf
▪ *ngSwitch
▪ Can use ng container to attach a structural directive to a section of the page, without
having to create an extra element just for that.
Ng template Example
Guards
▪ Part of Angular Router package
▪ Navigation guard to protect routes
▪ Four types of guards
▪ CanActivate
▪ Whether of not the route can be activated
▪ CanActivateChild
▪ Whether of not the child route can be activated
▪ CanDeactivate
▪ Whether or not the route can be deactivated
▪ CanLoad
▪ Whether or not the route can be loaded
Guard Example
https://github.com/mrgardner/AngularGuardExample
Event Emitters
▪ Can emit custom events synchronously or asynchronously
▪ When event is emitted it returns an Observable
▪ Get the value from the event emitter by subscribing to the instance
Event Emitter Example
https://github.com/mrgardner/CustomCounter
Major changes from Angular v2-v6
Major changes from v2-v6
▪ Updates to work with new versions of TypeScript
▪ Creation of new view engine
▪ Improved file sizes and application speeds
▪ Moving from SystemJS to Webpack
Major changes in v6
▪ Angular Elements Support
▪ Allows the developer to create and angular component as a web component that can be
used in any application without the angular framework
▪ Service Worker Support
▪ Support was first introduced in v5 but in v6 it ships with more bug fixes and the
configuration of navigation URLs within service workers
▪ <template> was replaced with <ng-template>
▪ I18n
▪ Runtime rendering so you do not have to build one application per locale
▪ Introduced third rendering engine Ivy
▪ Can test out the ivy engine with v6
▪ Should have a more complete version in next major release
▪ ngModelChanges
▪ Values are now emitted after the value is updated from the form control
Major changes in v6
▪ Bazel Compiler Support
▪ A tool that automates software builds and tests
▪ Similar to other tools such as Make, Ant, Maven, Gradle, and more
▪ RxJS 6.0 support
▪ Tree shaking
▪ New way to define an injectable service directly in the @Injectable decorator by adding
providedIn: ‘root’
▪ Webpack v4
Life cycle methods
Lifecycle methods
▪ ngOnChanges()
▪ Called when Angular set data-bound input properties
▪ ngOnInit()
▪ Called after Angular first displays data-bound properties
▪ ngDoCheck()
▪ Act and detect changes in Angular that won’t act upon on its own
▪ ngAfterContentInit()
▪ Called after components view is ready
Lifecycle methods Con’t
▪ ngAfterContentChecked()
▪ Called after Angular checks content projected onto view
▪ ngAfterViewInit()
▪ Called after component and child view are intialized
▪ ngAfterViewChecked()
▪ Called after component and child views are checked
▪ ngOnDestroy()
▪ Called just before Angular destroys the component or directive
Overview of TypeScript
What is TypeScript
▪ Developed by Microsoft
▪ A typed superset of Javascript that compiles into plain Javascript
▪ Allows developers to add types to variables
▪ Such as defining a variable to be of type string, array, object, boolean, number, etc
TypeScript Examples
Good Bad
Overview of RxJS
Observables (RxJS)
▪ Reactive Extensions for JavaScript (RxJS)
▪ Allow you to work with asynchronous data streams
▪ Asynchronous - when you call a function and is notified with a callback when results are
available
▪ Data - information that could be numbers, strings, or objects
▪ Streams - sequences of data that are made available over time
▪ You represent asynchronous data streams using observable sequences
Observables Examples
Angular Configuration
Angular Configurations
▪ Angular.json is the configuration file
▪ Add third part styles, scripts, and assets
▪ Testing
▪ Linting
Angular CLI
Angular CLI
▪ A command line interface that scaffolds and builds Angular apps
▪ Can be used to create
▪ Apps
▪ Components
▪ Services
▪ Guards
▪ Pipes
▪ And more
How to use Angular CLI
▪ First you need to install Angular CLI with npm install -g @angular/cli
▪ Now to use Angular CLI
▪ ng new <app-name>
▪ ng g component <component-name>
▪ ng g service <service-name>
▪ ng g guard <guard-name>
▪ ng g pipe <pipe-name>
Example output for creating a new app
Example output for creating a pipe
What is next for Angular?
What is next for Angular
▪ The Angular team is currently working on the third render engine Ivy
▪ Ivy uses two major concepts:
1. Tree Shaking
a. Removes unused code to result in smaller bundles and faster load times
2. Locality
a. Compiles one file at a time
b. It only looks at a component and its template not its dependencies
Demos
Demos
▪ Angular v2 App that I made for my mom when she was running for town council
▪ Angular v6 app that I have been working on that uses the Spotify API
▪ Created own shuffler
▪ Created filter to detect and remove duplicate tracks
▪ Able to play full-length spotify tracks in the browser with Spotify’s playback SDK
Topics We have covered
▪ Differences between Angular and AngularJS
▪ What is Angular?
▪ Core concepts of Angular
▪ Major changes from Angular v2 - v6
▪ Life cycle methods
▪ Brief overview of TypeScript
▪ Brief overview of RxJS
▪ Configuration to Angular
▪ Angular CLI
▪ What is next for Angular
▪ Demo of Angular spotify app and site for my mom
Questions?
50
Social Media
Kenzan Personal
Twitter
Website
Linkedin
Github
Email - matthew.gardner.mrg@gmail.com
Resources
▪ https://angular.io/
▪ https://www.typescriptlang.org/
▪ http://es6-features.org/#Constants
▪ https://www.learnrxjs.io/
▪ https://bazel.build/
Codepen links
▪ https://codepen.io/mgarnder/pen/jpZGmP
▪ AngularJS two way data binding example
▪ https://codepen.io/mgarnder/pen/KBQXRM
▪ Angular two way data binding example
▪ https://codepen.io/mgarnder/pen/djdZvB
▪ AngularJS service example
▪ https://github.com/mrgardner/Angular2ServiceExample
▪ Angular service example
Codepen links Con’t
▪ https://codepen.io/mgarnder/pen/oMEqGr
▪ AngularJS component example
▪ https://codepen.io/mgarnder/pen/KBQoeQ
▪ Angular component example
▪ https://github.com/mrgardner/CustomCounter
▪ Angular event emitter example
▪ https://github.com/mrgardner/AngularGuardExample
▪ Angular guard example

More Related Content

PDF
Angular Meetup 1 - Angular Basics and Workshop
PDF
Angular 2 Training | Angular 2 Tutorial For Beginners | Angular Certification...
PDF
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
PDF
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
PDF
Angular Routing Tutorial | AngularJS vs Angular Router | Angular Training | E...
ODP
Angular 6 - The Complete Guide
PPSX
Angular 4 fronts
PDF
What angular 13 will bring to the table
Angular Meetup 1 - Angular Basics and Workshop
Angular 2 Training | Angular 2 Tutorial For Beginners | Angular Certification...
Angular 4 Tutorial | What's New In Angular 4 | Angular Training | Edureka
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
Angular Routing Tutorial | AngularJS vs Angular Router | Angular Training | E...
Angular 6 - The Complete Guide
Angular 4 fronts
What angular 13 will bring to the table

What's hot (20)

PPTX
Go live with angular 4
PPTX
Talk for DevFest 2021 - GDG Bénin
PDF
What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...
PPTX
Angular 4 Introduction Tutorial
PDF
Mastering angular - Dot Net Tricks
PDF
Developing a Demo Application with Angular 4 - J2I
PDF
Meetup SkillValue - Angular 6 : Bien démarrer son application
PDF
Angular Directives | Angular 2 Custom Directives | Angular Tutorial | Angular...
PPTX
PPT
Angular App Presentation
PPTX
Angular 9
PDF
Introduction to angular 4
PDF
Angular 2 - Core Concepts
PPTX
Angular 2
PPTX
Angular 9 New features
PDF
Angular meetup 2 2019-08-29
PPTX
PDF
Angular 10 course_content
PDF
Introduction to angular 2
PPTX
Lecture 32
Go live with angular 4
Talk for DevFest 2021 - GDG Bénin
What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...
Angular 4 Introduction Tutorial
Mastering angular - Dot Net Tricks
Developing a Demo Application with Angular 4 - J2I
Meetup SkillValue - Angular 6 : Bien démarrer son application
Angular Directives | Angular 2 Custom Directives | Angular Tutorial | Angular...
Angular App Presentation
Angular 9
Introduction to angular 4
Angular 2 - Core Concepts
Angular 2
Angular 9 New features
Angular meetup 2 2019-08-29
Angular 10 course_content
Introduction to angular 2
Lecture 32
Ad

Similar to Angular, the New Angular JS (20)

PPTX
Angular 2.0
PDF
Angular v2 et plus : le futur du développement d'applications en entreprise
PPTX
PPTX
Angular kickstart slideshare
PPT
Angular.ppt
PDF
Angular (v2 and up) - Morning to understand - Linagora
PDF
Evolution and History of Angular as Web Development Platform.pdf
PPTX
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
PDF
Angular Interview Questions-PDF.pdf
PPTX
Foster - Getting started with Angular
PDF
Angular 2 overview
PPTX
Angular 18 course for begineers and experienced
PPTX
Angular Vs AngularJS: Key Differences You Need to Know
PPTX
Angular Framework ppt for beginners and advanced
PDF
Angular js
PDF
Angular js
PPTX
Angular
PPTX
Angular interview questions
PPTX
Angular 2 with typescript
PPTX
Angular4 getting started
Angular 2.0
Angular v2 et plus : le futur du développement d'applications en entreprise
Angular kickstart slideshare
Angular.ppt
Angular (v2 and up) - Morning to understand - Linagora
Evolution and History of Angular as Web Development Platform.pdf
4 Anguadasdfasdasdfasdfsdfasdfaslar (1).pptx
Angular Interview Questions-PDF.pdf
Foster - Getting started with Angular
Angular 2 overview
Angular 18 course for begineers and experienced
Angular Vs AngularJS: Key Differences You Need to Know
Angular Framework ppt for beginners and advanced
Angular js
Angular js
Angular
Angular interview questions
Angular 2 with typescript
Angular4 getting started
Ad

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
KodekX | Application Modernization Development
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Electronic commerce courselecture one. Pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Weekly Chronicles - August'25 Week I
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
KodekX | Application Modernization Development
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Understanding_Digital_Forensics_Presentation.pptx
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
Per capita expenditure prediction using model stacking based on satellite ima...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
GamePlan Trading System Review: Professional Trader's Honest Take
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
NewMind AI Monthly Chronicles - July 2025
Electronic commerce courselecture one. Pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation

Angular, the New Angular JS

  • 1. Angular, the new AngularJS By Matthew Gardner
  • 2. Matthew Gardner Frontend Developer ● Been with Kenzan for 4 years ● In free time I enjoy playing the guitar and listening to music ● Have been experimenting with Angular since RC stage ● Created a website for my mom in Angular v2 ● Have been developing an Angular app using spotify API
  • 3. Kenzan ▪ Full Service Consulting Firm ▪ Architecture, front and back end development, business analysis and DevTest. ▪ Cloud Virtualization Experts And Enablers ▪ AWS, Netflix stack, Kubernetes, Istio, enterprise architecture and beyond. ▪ DevOps Leadership ▪ Platform builds, continuous delivery and scalable resourcing.
  • 4. What we will cover today ▪ Differences between Angular and AngularJS ▪ What is Angular? ▪ Core concepts of Angular ▪ Major changes from Angular v2 - v6 ▪ Life cycle methods ▪ Brief overview of TypeScript ▪ Brief overview of RxJS ▪ Configuration to Angular ▪ Angular CLI ▪ What is next for Angular ▪ Demo of Angular spotify app and site for my mom
  • 5. Examples of differences between Angular and AngularJS
  • 6. AngularJS vs Angular two way data binding AngularJS Angular https://codepen.io/mgarnder/pen/jpZGmP - AngularJs https://codepen.io/mgarnder/pen/KBQXRM - Angular
  • 7. AngularJS vs Angular Services AngularJS Angular https://codepen.io/mgarnder/pen/djdZvB - AngularJS https://github.com/mrgardner/Angular2ServiceExample - Angular
  • 8. AngularJS vs Angular Components AngularJS Angular https://codepen.io/mgarnder/pen/oMEqGr - AngularJS https://codepen.io/mgarnder/pen/KBQoeQ - Angular
  • 10. What is Angular? ▪ A completely rewritten framework based on some of the concepts in AngularJS ▪ Does not include concept of “scope” or “controllers” instead it uses a hierarchy of components ▪ Modularity ▪ Typescript ▪ Asynchronous template compilation
  • 11. Main Features of Angular ▪ Cross Platform ▪ Speed and Performance ▪ Productivity ▪ Full Development story
  • 12. Cross Platform ▪ Progressive Web Apps ▪ Allows developer to use modern web platforms to deliver an app-like experience ▪ Native ▪ Build native mobile apps with strategies from Cordova, Ionic, or NativeScript ▪ Desktop ▪ Create desktop app on Mac, Windows, and Linux
  • 13. Speed and Performance ▪ Code Generation ▪ Angular turns the templates into highly optimized Javascript code ▪ Universal ▪ Serve the first view of your app on Node.JS, .NET, PHP, and other servers ▪ Code Splitting ▪ Angular apps load quicker with new Component Router which only loads code required to render
  • 14. Productivity ▪ Templates ▪ Create UI views with ease ▪ Angular CLI ▪ Command line tool that allows you to create your app, create components, test, and serve your app ▪ IDEs ▪ Code completion, error messages, and other feedback from popular editors
  • 15. Full Development Story ▪ Testing ▪ Has Karma built into framework for Unit tests and Protractor for End to End tests ▪ Animation ▪ Angular library that allows you to add simple or complex animation to your app ▪ Accessibility ▪ Create accessible apps with AIRA-enabled components, developer guides, and built-in a11y test infrastructure
  • 16. Core Concepts of Angular
  • 17. What is two way data binding ▪ When properties in the model gets updated it is also updated in the UI ▪ When the UI gets updated, the changes get propagated back to the model ▪ One of the biggest features in Angular and AngularJS
  • 18. Example of two way data binding
  • 19. Ng template ▪ Is an Angular template ▪ Is used in Angular under the hood when using ▪ *ngFor ▪ *ngIf ▪ *ngSwitch ▪ Can use ng container to attach a structural directive to a section of the page, without having to create an extra element just for that.
  • 21. Guards ▪ Part of Angular Router package ▪ Navigation guard to protect routes ▪ Four types of guards ▪ CanActivate ▪ Whether of not the route can be activated ▪ CanActivateChild ▪ Whether of not the child route can be activated ▪ CanDeactivate ▪ Whether or not the route can be deactivated ▪ CanLoad ▪ Whether or not the route can be loaded
  • 23. Event Emitters ▪ Can emit custom events synchronously or asynchronously ▪ When event is emitted it returns an Observable ▪ Get the value from the event emitter by subscribing to the instance
  • 25. Major changes from Angular v2-v6
  • 26. Major changes from v2-v6 ▪ Updates to work with new versions of TypeScript ▪ Creation of new view engine ▪ Improved file sizes and application speeds ▪ Moving from SystemJS to Webpack
  • 27. Major changes in v6 ▪ Angular Elements Support ▪ Allows the developer to create and angular component as a web component that can be used in any application without the angular framework ▪ Service Worker Support ▪ Support was first introduced in v5 but in v6 it ships with more bug fixes and the configuration of navigation URLs within service workers ▪ <template> was replaced with <ng-template> ▪ I18n ▪ Runtime rendering so you do not have to build one application per locale ▪ Introduced third rendering engine Ivy ▪ Can test out the ivy engine with v6 ▪ Should have a more complete version in next major release ▪ ngModelChanges ▪ Values are now emitted after the value is updated from the form control
  • 28. Major changes in v6 ▪ Bazel Compiler Support ▪ A tool that automates software builds and tests ▪ Similar to other tools such as Make, Ant, Maven, Gradle, and more ▪ RxJS 6.0 support ▪ Tree shaking ▪ New way to define an injectable service directly in the @Injectable decorator by adding providedIn: ‘root’ ▪ Webpack v4
  • 30. Lifecycle methods ▪ ngOnChanges() ▪ Called when Angular set data-bound input properties ▪ ngOnInit() ▪ Called after Angular first displays data-bound properties ▪ ngDoCheck() ▪ Act and detect changes in Angular that won’t act upon on its own ▪ ngAfterContentInit() ▪ Called after components view is ready
  • 31. Lifecycle methods Con’t ▪ ngAfterContentChecked() ▪ Called after Angular checks content projected onto view ▪ ngAfterViewInit() ▪ Called after component and child view are intialized ▪ ngAfterViewChecked() ▪ Called after component and child views are checked ▪ ngOnDestroy() ▪ Called just before Angular destroys the component or directive
  • 33. What is TypeScript ▪ Developed by Microsoft ▪ A typed superset of Javascript that compiles into plain Javascript ▪ Allows developers to add types to variables ▪ Such as defining a variable to be of type string, array, object, boolean, number, etc
  • 36. Observables (RxJS) ▪ Reactive Extensions for JavaScript (RxJS) ▪ Allow you to work with asynchronous data streams ▪ Asynchronous - when you call a function and is notified with a callback when results are available ▪ Data - information that could be numbers, strings, or objects ▪ Streams - sequences of data that are made available over time ▪ You represent asynchronous data streams using observable sequences
  • 39. Angular Configurations ▪ Angular.json is the configuration file ▪ Add third part styles, scripts, and assets ▪ Testing ▪ Linting
  • 41. Angular CLI ▪ A command line interface that scaffolds and builds Angular apps ▪ Can be used to create ▪ Apps ▪ Components ▪ Services ▪ Guards ▪ Pipes ▪ And more
  • 42. How to use Angular CLI ▪ First you need to install Angular CLI with npm install -g @angular/cli ▪ Now to use Angular CLI ▪ ng new <app-name> ▪ ng g component <component-name> ▪ ng g service <service-name> ▪ ng g guard <guard-name> ▪ ng g pipe <pipe-name>
  • 43. Example output for creating a new app
  • 44. Example output for creating a pipe
  • 45. What is next for Angular?
  • 46. What is next for Angular ▪ The Angular team is currently working on the third render engine Ivy ▪ Ivy uses two major concepts: 1. Tree Shaking a. Removes unused code to result in smaller bundles and faster load times 2. Locality a. Compiles one file at a time b. It only looks at a component and its template not its dependencies
  • 47. Demos
  • 48. Demos ▪ Angular v2 App that I made for my mom when she was running for town council ▪ Angular v6 app that I have been working on that uses the Spotify API ▪ Created own shuffler ▪ Created filter to detect and remove duplicate tracks ▪ Able to play full-length spotify tracks in the browser with Spotify’s playback SDK
  • 49. Topics We have covered ▪ Differences between Angular and AngularJS ▪ What is Angular? ▪ Core concepts of Angular ▪ Major changes from Angular v2 - v6 ▪ Life cycle methods ▪ Brief overview of TypeScript ▪ Brief overview of RxJS ▪ Configuration to Angular ▪ Angular CLI ▪ What is next for Angular ▪ Demo of Angular spotify app and site for my mom
  • 52. Resources ▪ https://angular.io/ ▪ https://www.typescriptlang.org/ ▪ http://es6-features.org/#Constants ▪ https://www.learnrxjs.io/ ▪ https://bazel.build/
  • 53. Codepen links ▪ https://codepen.io/mgarnder/pen/jpZGmP ▪ AngularJS two way data binding example ▪ https://codepen.io/mgarnder/pen/KBQXRM ▪ Angular two way data binding example ▪ https://codepen.io/mgarnder/pen/djdZvB ▪ AngularJS service example ▪ https://github.com/mrgardner/Angular2ServiceExample ▪ Angular service example
  • 54. Codepen links Con’t ▪ https://codepen.io/mgarnder/pen/oMEqGr ▪ AngularJS component example ▪ https://codepen.io/mgarnder/pen/KBQoeQ ▪ Angular component example ▪ https://github.com/mrgardner/CustomCounter ▪ Angular event emitter example ▪ https://github.com/mrgardner/AngularGuardExample ▪ Angular guard example