Fabio Biondi e Matteo Ronchi ci presentano AngularJS 2, analizzando la nuova sintassi per la creazione di componenti che ora assumono un ruolo fondamentale all’interno del framework.
Iscriviti qui per partecipare ad altri Tech Webinar: http://goo.gl/iW81VD
Scrivici a training@codemotion.it
Tw: @codemotionTR
2. 2 ANGULAR 2 CORE CONCEPTS
FABIOBIONDI
UI Developer and Trainer
Sviluppo, formazione e
consulenza su
AngularJS, React,
CreateJS, D3.js e diverse
librerie Javascript.
fabiobiondi.com
3. 2 ANGULAR 2 CORE CONCEPTS
MATTEORONCHI
Senior Software Engineer
Appassionato di
architetture e
ottimizzazioni da poco
aggiunto al team di
Workwave
@cef62
5. 2 ANGULAR 2 CORE CONCEPTS
• Goodbye $scope
• No more controllers
• Component Based-UI
• 1-way data flow
• ES6 / Typescript
• New built-in directives
ANGULAR 2 VS 1.X
6. 2 ANGULAR 2 CORE CONCEPTS
• New DI system
• Performance
• Better Mobile Support
• Server side render e Native Script
• Embrace Flux and RxJS
• Change Detection System
ANGULAR 2 VS 1.X
26. 2 ANGULAR 2 CORE CONCEPTS
Simple Service
export
class
MyService
{
getData()
{
return
loadData.load();
}
}
27. 2 ANGULAR 2 CORE CONCEPTS
import
{Injectable}
from
‘angular2/core’;
@Injectable()
export
class
MyService
{
constructor(public
loadData:LoadData)
{}
getData()
{
return
loadData.load();
}
}
Inject Service to a Service