SlideShare a Scribd company logo
Launch Yourself Into the
Angular 2 and TypeScript Space
Kurt Wiersma
@kwiersma
About Me
Software Development Leader/Manager
From Minneapolis, MN
Over 15 years of development
Favs: Python, Typescript, C#
Agenda
TypeScript Intro
Mapping Concepts from Angular 1 to 2
Bootstrapping and Module Loading
Components, Services, and Routing
Template Syntax
TypeScript
Typescript Intro
http://typescriptlang.org
TypeScript lets you write JavaScript the way
you really want to.
TypeScript is a typed superset of JavaScript
that compiles to plain JavaScript.
Any browser. Any host. Any OS. Open Source.
AngularJS 2 is implemented in TypeScript
JavaScript is Valid TypeScript
TypeScript Syntax
Features
Classes
Modules
Interfaces
Generics
Arrow Functions
Better “this”
Imports
Type Definitions
Getting Started
Install:
npm install -g typescript
Compile:
tsc
tsconfig.json
Typings manages type
definitions
Mapping Concepts From
Angular 1 to 2
Angular 1 to 2
Angular 1.x Angular 2.x
ES5 TypeScript
Controllers Components
Filters Pipes
ng-app bootstrap
ng-class [ngClass]
ng-click (click)
ng-if *ngIf
Angular 1 to 2
Angular 1.x Angular 2.x
ng-model [( ngModel )]
ng-repeat *ngFor
ng-show [hidden]
Promises Observables
https://angular.io/docs/ts/latest/cookbook/a1-a2-quick-
reference.html
Angular App Architecture
Getting Started
Angular CLI
npm install -g angular-cli
ng new my-ng2-project
ng serve
Watches, compiles, and serves
ng generate component my-component
Bootstrapping
index.html
app.ts
Components
Draft System Demo
Component Layout
Navbar Component
App Component
Router Outlet
(Draft Component, Fantasy Teams
Component)
Component Anatomy
Launch Yourself into The AngularJS 2 And TypeScript Space
Component Lifecycle
1. OnChanges - runs first and when a data bound input
property value changes
2. OnInit - after the first OnChanges
3. DoCheck - during every Angular change detection cycle
4. AfterViewInit - after init of the component’s views
and child views
5. OnDestroy - just before Angular destroys the
component
Lifecycle Example
Component Input
draft.component.html
DraftOrderComponent.ts
Events
PlayerFilterComponent
Events
Dependency Injection
Routing
Routing Demo
Routing
Linking To A Route
Services
Launch Yourself into The AngularJS 2 And TypeScript Space
Template Syntax
Template Syntax
On way data binding:
<h1>{{ player.name }}</h1>
Event binding:
<a (click)=handleClick()>Details</a>
Two Data Binding
BenNadel.com
Two Way Binding
Two-way data binding:
<input
type=“text” [(ngModel)]=“player.name” />
DOM Binding
<button [disabled]="isUnchanged">Save</button>
Structural Directives
Resources
angular.io
Angular 2 Style Guide
https://angular.io/docs/ts/latest/guide/style-guide.html
Dan Walhin’s Starter App
https://github.com/DanWahlin/Angular2-JumpStart
John Papa’s Angular 2 Course
https://app.pluralsight.com/library/courses/angular-2-
first-look
ng-book 2
Questions?
github.com/kwiersma/djleague-ng2
@kwiersma

More Related Content

What's hot (20)

PPTX
ASP.NET을 중심으로 한 웹 개발 기술의 발전과 마이크로소프트의 최근 동향
명신 김
 
PPTX
Building APIs with Node.js and Swagger
Jeremy Whitlock
 
PDF
The Ultimate Getting Started with Angular Workshop - Devoxx UK 2017
Matt Raible
 
PPTX
Rest API with Swagger and NodeJS
Luigi Saetta
 
PDF
Building Cloud Native Progressive Web Apps with Angular and Spring Boot - Dev...
Matt Raible
 
PPTX
Gdg makurdi
Nishu Goel
 
PDF
Streamlining API with Swagger.io
Victor Augusteo
 
PDF
Run Fast, Try Not to Break S**t
Michael Schmidt
 
PDF
OpenAPI development with Python
Takuro Wada
 
PDF
Crystal clear service interfaces w/ Swagger/OpenAPI
Scott Triglia
 
PPTX
Writer APIs in Java faster with Swagger Inflector
Tony Tam
 
PPTX
React Native.pptx (2)
Emilio Rodriguez Martinez
 
PPT
Griffon: Swing just got fun again
James Williams
 
PPTX
Angular vs React: Building modern SharePoint interfaces with SPFx
Dimcho Tsanov
 
PDF
React native sharing
Sam Lee
 
PPTX
Micro frontends
Kleyson Prado
 
PPTX
Understanding how to use Swagger and its tools
Swagger API
 
PDF
Introduction to React Native
dvcrn
 
PDF
Intro To React Native
FITC
 
PDF
Mikki Mesfin's Resume
Mikki Mesfin
 
ASP.NET을 중심으로 한 웹 개발 기술의 발전과 마이크로소프트의 최근 동향
명신 김
 
Building APIs with Node.js and Swagger
Jeremy Whitlock
 
The Ultimate Getting Started with Angular Workshop - Devoxx UK 2017
Matt Raible
 
Rest API with Swagger and NodeJS
Luigi Saetta
 
Building Cloud Native Progressive Web Apps with Angular and Spring Boot - Dev...
Matt Raible
 
Gdg makurdi
Nishu Goel
 
Streamlining API with Swagger.io
Victor Augusteo
 
Run Fast, Try Not to Break S**t
Michael Schmidt
 
OpenAPI development with Python
Takuro Wada
 
Crystal clear service interfaces w/ Swagger/OpenAPI
Scott Triglia
 
Writer APIs in Java faster with Swagger Inflector
Tony Tam
 
React Native.pptx (2)
Emilio Rodriguez Martinez
 
Griffon: Swing just got fun again
James Williams
 
Angular vs React: Building modern SharePoint interfaces with SPFx
Dimcho Tsanov
 
React native sharing
Sam Lee
 
Micro frontends
Kleyson Prado
 
Understanding how to use Swagger and its tools
Swagger API
 
Introduction to React Native
dvcrn
 
Intro To React Native
FITC
 
Mikki Mesfin's Resume
Mikki Mesfin
 

Viewers also liked (11)

PDF
TypeScript - das bessere JavaScript!?
Christian Kaltepoth
 
PDF
Angular2 & Native Script GDG DevFest 2016
Luciano Murruni
 
PDF
Angular 2: core concepts
Codemotion
 
PDF
Angular2 with type script
Ravi Mone
 
PDF
Angular2 Development for Java developers
Yakov Fain
 
PDF
TypeScript 2 in action
Alexander Rusakov
 
PPTX
Angular js 2
Ran Wahle
 
PDF
Александр Русаков - TypeScript 2 in action
MoscowJS
 
PPTX
Introduction to Angular 2
Tuan Trung Vo
 
ODP
Getting started with typescript and angular 2
Knoldus Inc.
 
PDF
Alphorm.com Formation TypeScript
Alphorm
 
TypeScript - das bessere JavaScript!?
Christian Kaltepoth
 
Angular2 & Native Script GDG DevFest 2016
Luciano Murruni
 
Angular 2: core concepts
Codemotion
 
Angular2 with type script
Ravi Mone
 
Angular2 Development for Java developers
Yakov Fain
 
TypeScript 2 in action
Alexander Rusakov
 
Angular js 2
Ran Wahle
 
Александр Русаков - TypeScript 2 in action
MoscowJS
 
Introduction to Angular 2
Tuan Trung Vo
 
Getting started with typescript and angular 2
Knoldus Inc.
 
Alphorm.com Formation TypeScript
Alphorm
 
Ad

Similar to Launch Yourself into The AngularJS 2 And TypeScript Space (20)

PPTX
AngularJS to Angular 2
Alicia G
 
PPTX
AngularJS2 / TypeScript / CLI
Domenico Rutigliano
 
PPTX
An afternoon with angular 2
Mike Melusky
 
PPTX
Agular js
Jeevan Kumar Reddy
 
PPTX
Migrating an Application from Angular 1 to Angular 2
Ross Dederer
 
PPTX
Angular%201%20to%20angular%202
Ran Wahle
 
PPTX
An evening with Angular 2
Mike Melusky
 
PPTX
Angular2 for Beginners
Oswald Campesato
 
PDF
Angular2 with TypeScript
Rohit Bishnoi
 
PDF
Angular 2... so can I use it now??
Laurent Duveau
 
PPTX
Angular2 getting started by Stephen Lautier
Andrei Toma
 
PPTX
Cross Platform Angular 2 and TypeScript Development
Jeremy Likness
 
PDF
Mastering angular - Dot Net Tricks
Gaurav Singh
 
PDF
Using type script to build better apps
ColdFusionConference
 
PDF
Using type script to build better apps
devObjective
 
PDF
Angular Developer Roadmap
Coding Tute
 
PPTX
Angular2
Oswald Campesato
 
PPTX
Angular 2 with typescript
Tayseer_Emam
 
PPTX
Angular 2
Travis van der Font
 
PPTX
Angularjs2 presentation
dharisk
 
AngularJS to Angular 2
Alicia G
 
AngularJS2 / TypeScript / CLI
Domenico Rutigliano
 
An afternoon with angular 2
Mike Melusky
 
Migrating an Application from Angular 1 to Angular 2
Ross Dederer
 
Angular%201%20to%20angular%202
Ran Wahle
 
An evening with Angular 2
Mike Melusky
 
Angular2 for Beginners
Oswald Campesato
 
Angular2 with TypeScript
Rohit Bishnoi
 
Angular 2... so can I use it now??
Laurent Duveau
 
Angular2 getting started by Stephen Lautier
Andrei Toma
 
Cross Platform Angular 2 and TypeScript Development
Jeremy Likness
 
Mastering angular - Dot Net Tricks
Gaurav Singh
 
Using type script to build better apps
ColdFusionConference
 
Using type script to build better apps
devObjective
 
Angular Developer Roadmap
Coding Tute
 
Angular 2 with typescript
Tayseer_Emam
 
Angularjs2 presentation
dharisk
 
Ad

More from ColdFusionConference (20)

PDF
Api manager preconference
ColdFusionConference
 
PDF
Cf ppt vsr
ColdFusionConference
 
PDF
Building better SQL Server Databases
ColdFusionConference
 
PDF
API Economy, Realizing the Business Value of APIs
ColdFusionConference
 
PDF
Don't just pdf, Smart PDF
ColdFusionConference
 
PDF
Crafting ColdFusion Applications like an Architect
ColdFusionConference
 
PDF
Security And Access Control For APIS using CF API Manager
ColdFusionConference
 
PDF
Monetizing Business Models: ColdFusion and APIS
ColdFusionConference
 
PDF
Become a Security Rockstar with ColdFusion 2016
ColdFusionConference
 
PDF
ColdFusion in Transit action
ColdFusionConference
 
PDF
Developer Insights for Application Upgrade to ColdFusion 2016
ColdFusionConference
 
PDF
Where is cold fusion headed
ColdFusionConference
 
PDF
ColdFusion Keynote: Building the Agile Web Since 1995
ColdFusionConference
 
PDF
Instant ColdFusion with Vagrant
ColdFusionConference
 
PPT
Restful services with ColdFusion
ColdFusionConference
 
PDF
Super Fast Application development with Mura CMS
ColdFusionConference
 
PDF
Build your own secure and real-time dashboard for mobile and web
ColdFusionConference
 
PDF
Why Everyone else writes bad code
ColdFusionConference
 
PDF
Securing applications
ColdFusionConference
 
PDF
Testing automaton
ColdFusionConference
 
Api manager preconference
ColdFusionConference
 
Building better SQL Server Databases
ColdFusionConference
 
API Economy, Realizing the Business Value of APIs
ColdFusionConference
 
Don't just pdf, Smart PDF
ColdFusionConference
 
Crafting ColdFusion Applications like an Architect
ColdFusionConference
 
Security And Access Control For APIS using CF API Manager
ColdFusionConference
 
Monetizing Business Models: ColdFusion and APIS
ColdFusionConference
 
Become a Security Rockstar with ColdFusion 2016
ColdFusionConference
 
ColdFusion in Transit action
ColdFusionConference
 
Developer Insights for Application Upgrade to ColdFusion 2016
ColdFusionConference
 
Where is cold fusion headed
ColdFusionConference
 
ColdFusion Keynote: Building the Agile Web Since 1995
ColdFusionConference
 
Instant ColdFusion with Vagrant
ColdFusionConference
 
Restful services with ColdFusion
ColdFusionConference
 
Super Fast Application development with Mura CMS
ColdFusionConference
 
Build your own secure and real-time dashboard for mobile and web
ColdFusionConference
 
Why Everyone else writes bad code
ColdFusionConference
 
Securing applications
ColdFusionConference
 
Testing automaton
ColdFusionConference
 

Recently uploaded (20)

PPTX
The birth and death of Stars - earth and life science
rizellemarieastrolo
 
PPTX
Practical Applications of AI in Local Government
OnBoard
 
PDF
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PDF
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
PDF
Next level data operations using Power Automate magic
Andries den Haan
 
PDF
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
PDF
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
PDF
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 
The birth and death of Stars - earth and life science
rizellemarieastrolo
 
Practical Applications of AI in Local Government
OnBoard
 
Pipeline Industry IoT - Real Time Data Monitoring
Safe Software
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
Next level data operations using Power Automate magic
Andries den Haan
 
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
How to Comply With Saudi Arabia’s National Cybersecurity Regulations.pdf
Bluechip Advanced Technologies
 

Launch Yourself into The AngularJS 2 And TypeScript Space