SlideShare a Scribd company logo
© Copyright SELA software & Education Labs Ltd. | 14-18 Baruch Hirsch St Bnei Brak, 51202 Israel | www.selagroup.com
What’s new in angular 2.0
Ran Wahle
Angular 1.x
Angular 2.0 building blocks
Components
Data binding
DI
Getting ready tips
Agenda
My first reaction…
Angular 1.x
Based on ES5
Based on jqLite (subset of jQuery)
Low performance
Why break something that works?
New standards
Performance
Angular 1.x pains
$scope
Heavy data binding mechanism
It is all directives
Angular 2.0
ES 6
Components
New databinding
New DI
Components
AngularJs 2.0 is built upon HTML5 WebComponents
Each component is a javascript class (function in es5)
It has a selector, view and a
import {Component, View, bootstrap} from 'angular2/angular2';
// Annotation section
Component({
selector: 'my-app'
})
View({
template: '<h1>Hello {{ name }}</h1>'
})
// Component controller
class MyAppComponent {
name: string;
constructor() {
this.name = 'Alice';
}
}
bootstrap(MyAppComponent);
Meet the component
“controller”
view
<my-app></my-app>
Use the component
Angular 2.0 bootstrapping
Create a component
Create a template
Bootstrap your component
Use transpiler
Angular 1.x bootstrapping
Create module
Create a controller
Create HTML template
Register your controller in a module
Bootstrap your module in your application
Demo
Component
DI
Using ES6 / typescript
import
No need for double DI
Need to load the JS code
The component needs to
be
injected to the module
Import the directive
Use directive inside the view
import {Component, View, bootstrap, For} from 'angular2/angular2‘ or another external
module;
template: `
<ul>
<li *for="#name of names">
{{ name }}
</li>
</ul>
`,
directives: [For]
}
Import and directives
Data Binding
No two way binding
[attribute]
(events)
#local variables
No ng-x are needed
Demo
Data Binding
Change Detection
Based on Object.observe
Organized as tree
Enahanced performance for immutable objects
Change Detection
1.x 2.0
How to get ready?
There are no migration paths (yet)
Be as modular a possible
Use controllerAs syntax and reduce the use of $scope
Use directives as much as you can
AngularJs 1.x will continue to evolve so no rush…
Resources
http://angular.io
Change detection By Victor Savkin
https://www.youtube.com/watch?v=jvKGQSFQf10
My blog: http://blogs.Microsoft.co.il/ranw
Angular 2.0 is completely different
It is based on standards that aren’t ready
It can be used now for tests
No release date yet

More Related Content

What's hot (20)

PDF
Tech Webinar: Angular 2, Introduction to a new framework
Codemotion
 
PPTX
Angular1x and Angular 2 for Beginners
Oswald Campesato
 
PPTX
Angular 2
Nigam Goyal
 
PDF
Angular2 with type script
Ravi Mone
 
PDF
Angular 2 overview
Jesse Warden
 
PDF
An Intro to Angular 2
Ron Heft
 
ODP
Introduction to Angular 2
Knoldus Inc.
 
PPTX
Talk for DevFest 2021 - GDG Bénin
Ezéchiel Amen AGBLA
 
PPTX
Angular 2 + TypeScript = true. Let's Play!
Sirar Salih
 
PPTX
Angular 2
Travis van der Font
 
PDF
Angular 2 - The Next Framework
Commit University
 
PPTX
Angular 5
Bartłomiej Narożnik
 
ODP
Building scalable modular app with Angular2 concept
kzw
 
PDF
Introduction to Angular 2
Dawid Myslak
 
PDF
Developing a Demo Application with Angular 4 - J2I
Nader Debbabi
 
PPTX
AngularJS2 / TypeScript / CLI
Domenico Rutigliano
 
PPTX
Angular 4 Introduction Tutorial
Scott Lee
 
PDF
Angular 2... so can I use it now??
Laurent Duveau
 
PPTX
Introduction to angular 2
Dor Moshe
 
Tech Webinar: Angular 2, Introduction to a new framework
Codemotion
 
Angular1x and Angular 2 for Beginners
Oswald Campesato
 
Angular 2
Nigam Goyal
 
Angular2 with type script
Ravi Mone
 
Angular 2 overview
Jesse Warden
 
An Intro to Angular 2
Ron Heft
 
Introduction to Angular 2
Knoldus Inc.
 
Talk for DevFest 2021 - GDG Bénin
Ezéchiel Amen AGBLA
 
Angular 2 + TypeScript = true. Let's Play!
Sirar Salih
 
Angular 2 - The Next Framework
Commit University
 
Building scalable modular app with Angular2 concept
kzw
 
Introduction to Angular 2
Dawid Myslak
 
Developing a Demo Application with Angular 4 - J2I
Nader Debbabi
 
AngularJS2 / TypeScript / CLI
Domenico Rutigliano
 
Angular 4 Introduction Tutorial
Scott Lee
 
Angular 2... so can I use it now??
Laurent Duveau
 
Introduction to angular 2
Dor Moshe
 

Viewers also liked (6)

PPTX
AngularJS 2.0
Boyan Mihaylov
 
PPTX
Introduction to Angular 2
Tuan Trung Vo
 
PPTX
Angular 2 - Better or worse
Vladimir Georgiev
 
PPTX
Single Page Applications with AngularJS 2.0
Sumanth Chinthagunta
 
PDF
Getting Started with Angular 2
FITC
 
AngularJS 2.0
Boyan Mihaylov
 
Introduction to Angular 2
Tuan Trung Vo
 
Angular 2 - Better or worse
Vladimir Georgiev
 
Single Page Applications with AngularJS 2.0
Sumanth Chinthagunta
 
Getting Started with Angular 2
FITC
 
Ad

Similar to What’s new in angular 2 (20)

PPTX
What’s new in angular 2 - From FrontEnd IL Meetup
Ran Wahle
 
PPTX
Angular%201%20to%20angular%202
Ran Wahle
 
PPTX
React JS: A Secret Preview
valuebound
 
PPTX
ME vs WEB - AngularJS Fundamentals
Aviran Cohen
 
PPTX
Angular js 2.0 beta
Nagaraju Sangam
 
PPTX
Angular 2 - a New Hope
Sami Suo-Heikki
 
PPTX
What are the components in React?
BOSC Tech Labs
 
PPTX
Angular 2 Migration - JHipster Meetup 6
William Marques
 
PPTX
Angular elements - embed your angular components EVERYWHERE
Nadav Mary
 
PPTX
Top 10 Techniques For React Performance Optimization in 2022.pptx
BOSC Tech Labs
 
PDF
Ionic framework one day training
Troy Miles
 
PPTX
Reactjs
Mallikarjuna G D
 
PPTX
Comparing Angular and React JS for SPAs
Jennifer Estrada
 
PDF
Mt ADF 001 adf-course outlines
Abbas Qureshi
 
PPTX
React - Start learning today
Nitin Tyagi
 
PPTX
Angular 2.0
Mallikarjuna G D
 
PPTX
react-slides.pptx
DayNightGaMiNg
 
PPSX
Angular js
Arun Somu Panneerselvam
 
PDF
Spring mvc
Hamid Ghorbani
 
PPTX
Getting started with Aurelia
Sean Hunter
 
What’s new in angular 2 - From FrontEnd IL Meetup
Ran Wahle
 
Angular%201%20to%20angular%202
Ran Wahle
 
React JS: A Secret Preview
valuebound
 
ME vs WEB - AngularJS Fundamentals
Aviran Cohen
 
Angular js 2.0 beta
Nagaraju Sangam
 
Angular 2 - a New Hope
Sami Suo-Heikki
 
What are the components in React?
BOSC Tech Labs
 
Angular 2 Migration - JHipster Meetup 6
William Marques
 
Angular elements - embed your angular components EVERYWHERE
Nadav Mary
 
Top 10 Techniques For React Performance Optimization in 2022.pptx
BOSC Tech Labs
 
Ionic framework one day training
Troy Miles
 
Comparing Angular and React JS for SPAs
Jennifer Estrada
 
Mt ADF 001 adf-course outlines
Abbas Qureshi
 
React - Start learning today
Nitin Tyagi
 
Angular 2.0
Mallikarjuna G D
 
react-slides.pptx
DayNightGaMiNg
 
Spring mvc
Hamid Ghorbani
 
Getting started with Aurelia
Sean Hunter
 
Ad

More from Ran Wahle (20)

PPTX
Implementing promises with typescripts, step by step
Ran Wahle
 
PPTX
HTML dialog element demonstration session
Ran Wahle
 
PPTX
MicroFrontend With Iframes, dirty laundry that can be cleaned
Ran Wahle
 
PPTX
Into React-DOM.pptx
Ran Wahle
 
PPTX
Lets go to the background
Ran Wahle
 
PPTX
Permissions api
Ran Wahle
 
PPTX
Lets go vanilla
Ran Wahle
 
PPTX
Custom elements
Ran Wahle
 
PPTX
Web workers
Ran Wahle
 
PPTX
Using legacy code with micro frontends
Ran Wahle
 
PPTX
Ngrx one-effect
Ran Wahle
 
PPTX
Angular migration
Ran Wahle
 
PPTX
Javascript async / await Frontend-IL
Ran Wahle
 
PPTX
Boost js state management
Ran Wahle
 
PPTX
Angular 2.0 change detection
Ran Wahle
 
PPTX
Code migration from Angular 1.x to Angular 2.0
Ran Wahle
 
PPTX
Async patterns in javascript
Ran Wahle
 
PPTX
Angular js 2
Ran Wahle
 
PPTX
Asyncawait in typescript
Ran Wahle
 
PPTX
angularJs Workshop
Ran Wahle
 
Implementing promises with typescripts, step by step
Ran Wahle
 
HTML dialog element demonstration session
Ran Wahle
 
MicroFrontend With Iframes, dirty laundry that can be cleaned
Ran Wahle
 
Into React-DOM.pptx
Ran Wahle
 
Lets go to the background
Ran Wahle
 
Permissions api
Ran Wahle
 
Lets go vanilla
Ran Wahle
 
Custom elements
Ran Wahle
 
Web workers
Ran Wahle
 
Using legacy code with micro frontends
Ran Wahle
 
Ngrx one-effect
Ran Wahle
 
Angular migration
Ran Wahle
 
Javascript async / await Frontend-IL
Ran Wahle
 
Boost js state management
Ran Wahle
 
Angular 2.0 change detection
Ran Wahle
 
Code migration from Angular 1.x to Angular 2.0
Ran Wahle
 
Async patterns in javascript
Ran Wahle
 
Angular js 2
Ran Wahle
 
Asyncawait in typescript
Ran Wahle
 
angularJs Workshop
Ran Wahle
 

Recently uploaded (20)

PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PDF
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PDF
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
Human Resources Information System (HRIS)
Amity University, Patna
 
4K Video Downloader Plus Pro Crack for MacOS New Download 2025
bashirkhan333g
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 

What’s new in angular 2