SlideShare a Scribd company logo
PeopleSpace 4 April 2017
What is Angular
version 4?
PS Tech Workshops
• Angular Bootcamp, April 29th & 30th
• Intro to React, May 5th & 6th
• 20% off tonight only with discount code:
• ROCKNCODER20
• http://peoplespace.us/javascript/
Troy Miles
• Troy Miles aka the RocknCoder
• Over 38 years of programming
experience
• Speaker and author
• bit.ly/rc-jquerybook
• rockncoder@gmail.com
• @therockncoder
• Now a lynda.com Author!

Build Mobile Apps!
• Develop mobile apps with
Ionic and AngularJS
• Learn the Ionic CLI
• Fetch data via ajax
• Deploy your app to Android &
iOS
• bit.ly/ionicvideo
What is Angular version 4?
Follow Me
• Talks
• Webcasts
• Free stuff
• Tips, tricks, tools
• and general code nerd stuff
• @therockncoder
Agenda
• Call me Angular
• From v2 to v4
• Changes
• Let’s build a web app
• Summary
Call me Angular
• Google is asking everyone to stop calling it:
• Angular 2
• Angular 4
• Angular whatever
• Call it Angular
• and call version 1, AngularJS
From v2 to v4
• This is a minor update
• It does have few breaking changes
• The version updated to 4 to bring all of the main
components up to the same version
• (the router was at version 3.3)
Changes
• Smaller & faster
• Animation package pulled out of core
• *ngIf and *ngFor
• Angular Universal part of angular
• TypeScript 2.x compatibility
upgrading is easy
Linux/Mac
• npm install @angular/{common,compiler,compiler-
cli,core,forms,http,platform-browser,platform-
browser-dynamic,platform-server,router,animations}
@latest typescript@latest --save
Windows
• npm install @angular/common@latest @angular/
compiler@latest @angular/compiler-cli@latest
@angular/core@latest @angular/forms@latest
@angular/http@latest @angular/platform-
browser@latest @angular/platform-browser-
dynamic@latest @angular/platform-server@latest
@angular/router@latest @angular/animations@latest
typescript@latest --save
Future Versions
Date Stable Release Compatibility *
Sept/Oct 2017 5.0.0 ^4.0.0
Mar 2018 6.0.0 ^5.0.0
Sept/Oct 2018 7.0.0 ^6.0.0
My Versions
app command my version
git git —version 2.11.0
node.js node -v 7.7.2
npm npm —v 4.1.2
angular cli ng -v 1.0.0
Angular CLI
Tool Command
New App ng new <app-name>
Web Server ng serve
Unit Test ng test
End to End Test ng e2e
Dev Build ng build dev
Production Build ng build prod
Create New Components
Component Command
Class ng g class my-new-class
Component ng g component my-new-component
Directive ng g directive my-new-directive
Enum ng g enum my-new-enum
Interface ng g interface my-new-interface
Module ng g module my-module
Pipe ng g pipe my-new-pipe
Service ng g service my-new-service
package.json
Component Command
core-js	 modular standard library for JavaScript
rxjs reactive extensions for JavaScript
zone.js change detection
angular2-moment angular wrapper for moment.js
hammerjs support touch gestures
codelyzer set of tslint rules for static code analysis
naming convention
• Angular apps are usually built using lowercase
kebab naming convention
• words are lowercase, dash as separator
• final word is the thing’s type, a dot is its separator
• if the thing is a class, no final word
• contact-details.component.ts
Webpack
• Open source module bundler
• Replaces System.JS
• Works with JS, CSS, and HTML
• Minifies, Concatenates, and Bundles
repos & gists
• https://github.com/Rockncoder/gh-stars
• https://github.com/Rockncoder/github-stars
• https://gist.github.com/rockncoder
GitHub Search API
• https://api.github.com/search/
• Show project based on stars
• Display project’s name, stars, size, language, last
update
• Able to page forward and back
• Use Angular Material for design
Application Root Directory
• All of the commands, for all of the tools are
designed work on the application root directory
• If used anywhere else bad things will happen
• be sure you are in the app root
• double check that you are in the app root
Let’s build something
Links
• https://angular.io/
• https://material.angular.io/
• https://cli.angular.io/
Summary
• Angular version 4 is an upgrade of version 2
• It is smaller and faster
• The angular CLI makes it easy to get started

More Related Content

PDF
ReactJS.NET
PPTX
Introduction to angular 2
PDF
Introduction to angular 2
PDF
Quick introduction to Angular 4 for AngularJS 1.5 developers
PPTX
Angular 2
PPTX
PPTX
Angular 4 - quick view
PPTX
ReactJS.NET
Introduction to angular 2
Introduction to angular 2
Quick introduction to Angular 4 for AngularJS 1.5 developers
Angular 2
Angular 4 - quick view

What's hot (20)

PPSX
Angular 4 fronts
PDF
Angular 2 - Core Concepts
ODP
Angular 6 - The Complete Guide
PDF
Angular 2 - An Introduction
PDF
Introduction to Angular 2
PDF
Developing a Demo Application with Angular 4 - J2I
PPTX
Talk for DevFest 2021 - GDG Bénin
PPTX
Angular 4 Introduction Tutorial
PPTX
Introduction to Angular 2
PDF
What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...
PDF
What angular 13 will bring to the table
PDF
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
PPTX
PPT on Angular 2 Development Tutorial
PDF
Introduction to angular 4
ODP
A Glimpse on Angular 4
PDF
An Intro to Angular 2
PDF
Angular2 with type script
PDF
Angular2 with TypeScript
PDF
Getting Started with the Angular 2 CLI
PDF
Angular 2 Essential Training
Angular 4 fronts
Angular 2 - Core Concepts
Angular 6 - The Complete Guide
Angular 2 - An Introduction
Introduction to Angular 2
Developing a Demo Application with Angular 4 - J2I
Talk for DevFest 2021 - GDG Bénin
Angular 4 Introduction Tutorial
Introduction to Angular 2
What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...
What angular 13 will bring to the table
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
PPT on Angular 2 Development Tutorial
Introduction to angular 4
A Glimpse on Angular 4
An Intro to Angular 2
Angular2 with type script
Angular2 with TypeScript
Getting Started with the Angular 2 CLI
Angular 2 Essential Training
Ad

Similar to What is Angular version 4? (20)

PDF
MEAN Stack Warm-up
PDF
From MEAN to the MERN Stack
PPTX
Philly CocoaHeads 20160414 - Building Your App SDK With Swift
PPTX
Angular2.0@Shanghai0319
PPTX
TallyJS #1 - Intro to AngularJS
PPTX
Swagger - Making REST APIs friendlier
PPTX
What is cool with Domino V10, Proton and Node.JS, and why would I use it in ...
PPTX
Kiss.ts - The Keep It Simple Software Stack for 2017++
PDF
Anyone Can Code: JavaScript - 6/24/2014
PDF
[DevDay 2017] ReactJS Hands on - Speaker: Binh Phan - Developer at mgm techno...
PDF
Erica Cooksey Reactathon 2018
PDF
Angular 2 overview
PDF
Node.js for .NET Developers
PPTX
Tech io spa_angularjs_20130814_v0.9.5
PDF
Putting the Native in React Native - React Native Boston
PPTX
Angular Owin Katana TypeScript
PDF
Angular Day 2018 (italy) - Keynote - The Amazing World of Angular 6
PDF
Performance and Scalability Art of Isomorphic React Applications
KEY
Google App Engine Java, Groovy and Gaelyk
PDF
Front-end for Java developers Devoxx France 2018
MEAN Stack Warm-up
From MEAN to the MERN Stack
Philly CocoaHeads 20160414 - Building Your App SDK With Swift
Angular2.0@Shanghai0319
TallyJS #1 - Intro to AngularJS
Swagger - Making REST APIs friendlier
What is cool with Domino V10, Proton and Node.JS, and why would I use it in ...
Kiss.ts - The Keep It Simple Software Stack for 2017++
Anyone Can Code: JavaScript - 6/24/2014
[DevDay 2017] ReactJS Hands on - Speaker: Binh Phan - Developer at mgm techno...
Erica Cooksey Reactathon 2018
Angular 2 overview
Node.js for .NET Developers
Tech io spa_angularjs_20130814_v0.9.5
Putting the Native in React Native - React Native Boston
Angular Owin Katana TypeScript
Angular Day 2018 (italy) - Keynote - The Amazing World of Angular 6
Performance and Scalability Art of Isomorphic React Applications
Google App Engine Java, Groovy and Gaelyk
Front-end for Java developers Devoxx France 2018
Ad

More from Troy Miles (20)

PDF
Fast C++ Web Servers
PDF
Node Boot Camp
PDF
AWS Lambda Function with Kotlin
PDF
React Native One Day
PDF
React Native Evening
PDF
Intro to React
PDF
React Development with the MERN Stack
PDF
Angular Application Testing
PDF
Angular Weekend
PDF
Functional Programming in JavaScript
PDF
Functional Programming in Clojure
PDF
The JavaScript You Wished You Knew
PDF
Game Design and Development Workshop Day 1
PDF
Build a Game in 60 minutes
PDF
Quick & Dirty & MEAN
PDF
A Quick Intro to ReactiveX
PDF
JavaScript Foundations Day1
PDF
AngularJS Beginner Day One
PDF
AngularJS on Mobile with the Ionic Framework
PDF
Building Cross-Platform Mobile Apps
Fast C++ Web Servers
Node Boot Camp
AWS Lambda Function with Kotlin
React Native One Day
React Native Evening
Intro to React
React Development with the MERN Stack
Angular Application Testing
Angular Weekend
Functional Programming in JavaScript
Functional Programming in Clojure
The JavaScript You Wished You Knew
Game Design and Development Workshop Day 1
Build a Game in 60 minutes
Quick & Dirty & MEAN
A Quick Intro to ReactiveX
JavaScript Foundations Day1
AngularJS Beginner Day One
AngularJS on Mobile with the Ionic Framework
Building Cross-Platform Mobile Apps

Recently uploaded (20)

PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PPTX
Introduction to Artificial Intelligence
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Transform Your Business with a Software ERP System
PPTX
assetexplorer- product-overview - presentation
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
top salesforce developer skills in 2025.pdf
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Computer Software and OS of computer science of grade 11.pptx
Softaken Excel to vCard Converter Software.pdf
L1 - Introduction to python Backend.pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
CHAPTER 2 - PM Management and IT Context
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Introduction to Artificial Intelligence
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Reimagine Home Health with the Power of Agentic AI​
Design an Analysis of Algorithms II-SECS-1021-03
Transform Your Business with a Software ERP System
assetexplorer- product-overview - presentation
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
top salesforce developer skills in 2025.pdf
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
Operating system designcfffgfgggggggvggggggggg
wealthsignaloriginal-com-DS-text-... (1).pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)

What is Angular version 4?

  • 1. PeopleSpace 4 April 2017 What is Angular version 4?
  • 2. PS Tech Workshops • Angular Bootcamp, April 29th & 30th • Intro to React, May 5th & 6th • 20% off tonight only with discount code: • ROCKNCODER20 • http://peoplespace.us/javascript/
  • 3. Troy Miles • Troy Miles aka the RocknCoder • Over 38 years of programming experience • Speaker and author • bit.ly/rc-jquerybook • [email protected] • @therockncoder • Now a lynda.com Author!

  • 4. Build Mobile Apps! • Develop mobile apps with Ionic and AngularJS • Learn the Ionic CLI • Fetch data via ajax • Deploy your app to Android & iOS • bit.ly/ionicvideo
  • 6. Follow Me • Talks • Webcasts • Free stuff • Tips, tricks, tools • and general code nerd stuff • @therockncoder
  • 7. Agenda • Call me Angular • From v2 to v4 • Changes • Let’s build a web app • Summary
  • 8. Call me Angular • Google is asking everyone to stop calling it: • Angular 2 • Angular 4 • Angular whatever • Call it Angular • and call version 1, AngularJS
  • 9. From v2 to v4 • This is a minor update • It does have few breaking changes • The version updated to 4 to bring all of the main components up to the same version • (the router was at version 3.3)
  • 10. Changes • Smaller & faster • Animation package pulled out of core • *ngIf and *ngFor • Angular Universal part of angular • TypeScript 2.x compatibility
  • 12. Linux/Mac • npm install @angular/{common,compiler,compiler- cli,core,forms,http,platform-browser,platform- browser-dynamic,platform-server,router,animations} @latest typescript@latest --save
  • 13. Windows • npm install @angular/common@latest @angular/ compiler@latest @angular/compiler-cli@latest @angular/core@latest @angular/forms@latest @angular/http@latest @angular/platform- browser@latest @angular/platform-browser- dynamic@latest @angular/platform-server@latest @angular/router@latest @angular/animations@latest typescript@latest --save
  • 14. Future Versions Date Stable Release Compatibility * Sept/Oct 2017 5.0.0 ^4.0.0 Mar 2018 6.0.0 ^5.0.0 Sept/Oct 2018 7.0.0 ^6.0.0
  • 15. My Versions app command my version git git —version 2.11.0 node.js node -v 7.7.2 npm npm —v 4.1.2 angular cli ng -v 1.0.0
  • 16. Angular CLI Tool Command New App ng new <app-name> Web Server ng serve Unit Test ng test End to End Test ng e2e Dev Build ng build dev Production Build ng build prod
  • 17. Create New Components Component Command Class ng g class my-new-class Component ng g component my-new-component Directive ng g directive my-new-directive Enum ng g enum my-new-enum Interface ng g interface my-new-interface Module ng g module my-module Pipe ng g pipe my-new-pipe Service ng g service my-new-service
  • 18. package.json Component Command core-js modular standard library for JavaScript rxjs reactive extensions for JavaScript zone.js change detection angular2-moment angular wrapper for moment.js hammerjs support touch gestures codelyzer set of tslint rules for static code analysis
  • 19. naming convention • Angular apps are usually built using lowercase kebab naming convention • words are lowercase, dash as separator • final word is the thing’s type, a dot is its separator • if the thing is a class, no final word • contact-details.component.ts
  • 20. Webpack • Open source module bundler • Replaces System.JS • Works with JS, CSS, and HTML • Minifies, Concatenates, and Bundles
  • 21. repos & gists • https://github.com/Rockncoder/gh-stars • https://github.com/Rockncoder/github-stars • https://gist.github.com/rockncoder
  • 22. GitHub Search API • https://api.github.com/search/ • Show project based on stars • Display project’s name, stars, size, language, last update • Able to page forward and back • Use Angular Material for design
  • 23. Application Root Directory • All of the commands, for all of the tools are designed work on the application root directory • If used anywhere else bad things will happen • be sure you are in the app root • double check that you are in the app root
  • 26. Summary • Angular version 4 is an upgrade of version 2 • It is smaller and faster • The angular CLI makes it easy to get started