狠狠撸

狠狠撸Share a Scribd company logo
1
The new Component Router
for Angular 2
Manfred Steyer
ManfredSteyer
About me …
? Manfred Steyer
? SOFTWAREarchitekt.at
? Trainer & Consultant
? Focus: Angular
Page ? 2
2
Contents
?(Quick) Overview of Concepts and Scenarios
?DEMO with Angular 2
?Guards
?DEMO
?Aux-Routes
?DEMO
Page ? 4
OVERVIEW
Page ? 5
3
What is the Component Router?
Page ? 6
New Router-
Solution
Angular 2
and 1.x
Activating
Components
Lazy
Loading
Hierarchical
Routing
Guards
Replacement for Lifecycle-Hooks
Almost here …
Short History
Page ? 7
? Core: Stable
? Moving Parts beyond the core
? New Router/ Component Router
? Breaking Changes: Almost find/replace
? Also back-ported to Angular 1.x
Angular 2 BETA: Dezember 2015
? Newest Router
Angular 2 RC 1: May 2016
? Newest New Router (Version 3)
? Back-porting to Angular 1.x plannend
Angular 2 RC 2: June 2016
4
Routing
Page ? 8
Logo + Menu
Menu2
Footer
SPA
Placeholder
Routing with History API
Page ? 10
Logo + Menü
Menü2
Fu?zeile
SPA Flight
-Component
/FlightApp/flights
5
Routing with Parameter
Page ? 11
Logo + Menü
Menü2
Fu?zeile
SPA
Flight-Edit-
Component
for Flight #17
/FlightApp/flights/17
Hierarchical Routing
Page ? 13
Logo + Menu
Menu2
Footer
SPA
Placeholder
6
Hierarchical Routing
Page ? 14
Logo + Menu
Menu2
Footer
SPA
/FlightApp/flight-booking
FlightBooking-Component
Hierarchical Routing
Page ? 15
Logo + Menu
Menu2
Footer
SPA
/FlightApp/flight-booking
Options
Placeholder
FlightBooking-Component
7
Hierarchical Routing
Page ? 16
Logo + Menu
Menu2
Fu?zeile
SPA
/FlightApp/flight-booking/flights
Optionen
Flight-
Component
FlightBooking-Component
DEMO
Page ? 17
App
Home
Flight
Booking
Passenger
Search
Flight
Search
Flight Edit
id
8
GUARDS
Page ? 18
What are Guards?
?Services
?Can get other services via DI
?Router triggers Guards before activating/
deactivating Components
?Can prevent activation/ deactivation
Page ? 19
9
Guards
CanActivate canActivate
CanDeactivate<T> canDeactivate
Result: boolean | Observable<boolean>
Configuring Guards
Page ? 21
const APP_ROUTES: RouterConfig = [
{
path: '/flug-buchen',
component: FlugBuchenComponent,
canActivate: [AuthGuard],
children: [
{
path: 'flug-edit/:id',
component: FlugEditComponent,
canDeactivate: [FlightEditGuard]
},
[…]
]
]
Token
10
Provider for Guards
Page ? 22
export const APP_ROUTER_PROVIDER = [
provideRouter(APP_ROUTES),
{ provide: FlightEditGuard, useClass: FlightEditGuard },
{ provide: AuthGuard, useClass: AuthGuard }
];
Provider for Guards
Page ? 23
export const APP_ROUTER_PROVIDER = [
provideRouter(APP_ROUTES),
FlightEditGuard,
AuthGuard
];
11
DEMO
Page ? 31
AUX-ROUTES
Page ? 34
12
Aux-Routes
Page ? 35
Logo + Menu
Menu2
Footer
SPA
Placeholder
Named Placeholder
Aux-Routes
Page ? 36
Logo + Menu
Menu2
Footer
SPA Flight-
Component
Named Placeholder
/FlightApp/flights
13
Aux-Routes
Page ? 37
Logo + Menu
Menu2
Footer
SPA Flight-
Component
Info-Component
/FlightApp/flights(aux:info)
Aux-Routes
Page ? 38
Logo + Menu
Menu2
Footer
SPA Flight-
Component
Modal-Component
/FlightApp/flights(aux:info/modal)
14
Aux-Routes
Page ? 39
Logo + Menu
Menu2
Footer
SPA Flight-Edit-
Component
Modal-Component
/FlightApp/flights(aux:info/modal)/edit/17
DEMO
Page ? 40
15
LAZY LOADING
Page ? 41
1
4
3
2
Lazy Loading
16
Summary
? Component Router: New Routing-Solution for Angular
2 and AngularJS 1.x
? Lazy Loading (Coming)
? Hierarchical Routing
? Guards
? Aux Routes
Page ? 43
manfred.steyer@SOFTWAREarchitekt.at
SOFTWAREarchitekt.at
ManfredSteyer
Contact
Ad

Recommended

Der neueste neue Router (Version 3) für Angular 2
Der neueste neue Router (Version 3) für Angular 2
Manfred Steyer
?
Angular 2.0
Angular 2.0
Nitin Giri
?
What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...
What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...
Edureka!
?
Angular 2
Angular 2
alinabiliashevych
?
Angular 2 - SSD 2016 London
Angular 2 - SSD 2016 London
Manfred Steyer
?
Angular 2: Migration - SSD 2016 London
Angular 2: Migration - SSD 2016 London
Manfred Steyer
?
The new component router for Angular 2 and 1.x
The new component router for Angular 2 and 1.x
Manfred Steyer
?
The newst new Router for Angular 2 - Talk at @angular_berlin, July 2016
The newst new Router for Angular 2 - Talk at @angular_berlin, July 2016
Manfred Steyer
?
Angular 2 and 1.5 Routing
Angular 2 and 1.5 Routing
Manfred Steyer
?
ngconf2015
ngconf2015
Anne Cypcar
?
Migrating From Angular 1.x to Angular 2+
Migrating From Angular 1.x to Angular 2+
Asim Hussain
?
Routing & Navigating Pages in Angular 2
Routing & Navigating Pages in Angular 2
Knoldus Inc.
?
An Intro to Angular 2
An Intro to Angular 2
Ron Heft
?
El viaje de Angular1 a Angular2
El viaje de Angular1 a Angular2
Antonio de la Torre Fernández
?
Understand routing in angular 2
Understand routing in angular 2
codeandyou forums
?
Angular 2 Routing
Angular 2 Routing
Andres Ciceri
?
IMPROVE YOUR WEBSITE PERFORMANCE WITH ANGULAR JS2
IMPROVE YOUR WEBSITE PERFORMANCE WITH ANGULAR JS2
Paul Cook
?
Angular%201%20to%20angular%202
Angular%201%20to%20angular%202
Ran Wahle
?
Angular 2 - How we got here?
Angular 2 - How we got here?
Marios Fakiolas
?
Adventures with Angular 2
Adventures with Angular 2
Dragos Ionita
?
Angular2 workshop
Angular2 workshop
Nir Kaufman
?
Angular 2 MVD workshop
Angular 2 MVD workshop
Iran Reyes Fleitas
?
Angular 2
Angular 2
Travis van der Font
?
Angular 2... so can I use it now??
Angular 2... so can I use it now??
Laurent Duveau
?
An afternoon with angular 2
An afternoon with angular 2
Mike Melusky
?
PPT on Angular 2 Development Tutorial
PPT on Angular 2 Development Tutorial
Paddy Lock
?
Angular js 2
Angular js 2
Ran Wahle
?
Angular2
Angular2
SitaPrajapati
?
Der neue Component Router für Angular 2
Manfred Steyer
?
Datenbindung und Performance in Angular 2
Manfred Steyer
?

More Related Content

Similar to The newst new Router for Angular 2 ("Version 3") (20)

Angular 2 and 1.5 Routing
Angular 2 and 1.5 Routing
Manfred Steyer
?
ngconf2015
ngconf2015
Anne Cypcar
?
Migrating From Angular 1.x to Angular 2+
Migrating From Angular 1.x to Angular 2+
Asim Hussain
?
Routing & Navigating Pages in Angular 2
Routing & Navigating Pages in Angular 2
Knoldus Inc.
?
An Intro to Angular 2
An Intro to Angular 2
Ron Heft
?
El viaje de Angular1 a Angular2
El viaje de Angular1 a Angular2
Antonio de la Torre Fernández
?
Understand routing in angular 2
Understand routing in angular 2
codeandyou forums
?
Angular 2 Routing
Angular 2 Routing
Andres Ciceri
?
IMPROVE YOUR WEBSITE PERFORMANCE WITH ANGULAR JS2
IMPROVE YOUR WEBSITE PERFORMANCE WITH ANGULAR JS2
Paul Cook
?
Angular%201%20to%20angular%202
Angular%201%20to%20angular%202
Ran Wahle
?
Angular 2 - How we got here?
Angular 2 - How we got here?
Marios Fakiolas
?
Adventures with Angular 2
Adventures with Angular 2
Dragos Ionita
?
Angular2 workshop
Angular2 workshop
Nir Kaufman
?
Angular 2 MVD workshop
Angular 2 MVD workshop
Iran Reyes Fleitas
?
Angular 2
Angular 2
Travis van der Font
?
Angular 2... so can I use it now??
Angular 2... so can I use it now??
Laurent Duveau
?
An afternoon with angular 2
An afternoon with angular 2
Mike Melusky
?
PPT on Angular 2 Development Tutorial
PPT on Angular 2 Development Tutorial
Paddy Lock
?
Angular js 2
Angular js 2
Ran Wahle
?
Angular2
Angular2
SitaPrajapati
?
Angular 2 and 1.5 Routing
Angular 2 and 1.5 Routing
Manfred Steyer
?
Migrating From Angular 1.x to Angular 2+
Migrating From Angular 1.x to Angular 2+
Asim Hussain
?
Routing & Navigating Pages in Angular 2
Routing & Navigating Pages in Angular 2
Knoldus Inc.
?
An Intro to Angular 2
An Intro to Angular 2
Ron Heft
?
Understand routing in angular 2
Understand routing in angular 2
codeandyou forums
?
IMPROVE YOUR WEBSITE PERFORMANCE WITH ANGULAR JS2
IMPROVE YOUR WEBSITE PERFORMANCE WITH ANGULAR JS2
Paul Cook
?
Angular%201%20to%20angular%202
Angular%201%20to%20angular%202
Ran Wahle
?
Angular 2 - How we got here?
Angular 2 - How we got here?
Marios Fakiolas
?
Adventures with Angular 2
Adventures with Angular 2
Dragos Ionita
?
Angular 2... so can I use it now??
Angular 2... so can I use it now??
Laurent Duveau
?
An afternoon with angular 2
An afternoon with angular 2
Mike Melusky
?
PPT on Angular 2 Development Tutorial
PPT on Angular 2 Development Tutorial
Paddy Lock
?

More from Manfred Steyer (20)

Der neue Component Router für Angular 2
Manfred Steyer
?
Datenbindung und Performance in Angular 2
Manfred Steyer
?
Single Page Applications neu gedacht: Redux in Angular 2 mit @ngrx/store
Manfred Steyer
?
Offlinef?hige Browseranwendungen: Progressive Web-Apps mit Angular 2
Manfred Steyer
?
Angular 2: Die Ideen hinter Datenbindung und Formularen im Detail betrachtet
Manfred Steyer
?
Datengetriebene Web APIs mit Entity Framework
Manfred Steyer
?
Angular 2 Upgrade: Migration von AngularJS 1.x zu 2.0
Angular 2 Upgrade: Migration von AngularJS 1.x zu 2.0
Manfred Steyer
?
Web APIs mit ASP.NET Core 1
Manfred Steyer
?
Databinding and Performance-Tuning in Angular 2
Databinding and Performance-Tuning in Angular 2
Manfred Steyer
?
Modern authentication solutions in Angular 2 with OAuth 2.0 and OpenId Connect
Modern authentication solutions in Angular 2 with OAuth 2.0 and OpenId Connect
Manfred Steyer
?
Progressive web apps with Angular 2
Progressive web apps with Angular 2
Manfred Steyer
?
Webpack
Manfred Steyer
?
ASP.NET Core 1 for MVC- and WebAPI-Devs
ASP.NET Core 1 for MVC- and WebAPI-Devs
Manfred Steyer
?
EF Core 1: News features and changes
EF Core 1: News features and changes
Manfred Steyer
?
ASP.NET Web API Deep Dive - SSD 2016 London
ASP.NET Web API Deep Dive - SSD 2016 London
Manfred Steyer
?
Was bringt Angular 2?
Manfred Steyer
?
Web APIs mit ASP.NET MVC Core 1
Manfred Steyer
?
.NET Summit 2016 München: EcmaScript 2015+ with TypeScript
Manfred Steyer
?
.NET Summit 2016 München: Angular 2 mit TypeScript
Manfred Steyer
?
Wiederverwendbare Komponenten mit Angular 2.0 – Deep Dive
Manfred Steyer
?
Der neue Component Router für Angular 2
Manfred Steyer
?
Datenbindung und Performance in Angular 2
Manfred Steyer
?
Single Page Applications neu gedacht: Redux in Angular 2 mit @ngrx/store
Manfred Steyer
?
Offlinef?hige Browseranwendungen: Progressive Web-Apps mit Angular 2
Manfred Steyer
?
Angular 2: Die Ideen hinter Datenbindung und Formularen im Detail betrachtet
Manfred Steyer
?
Datengetriebene Web APIs mit Entity Framework
Manfred Steyer
?
Angular 2 Upgrade: Migration von AngularJS 1.x zu 2.0
Angular 2 Upgrade: Migration von AngularJS 1.x zu 2.0
Manfred Steyer
?
Web APIs mit ASP.NET Core 1
Manfred Steyer
?
Databinding and Performance-Tuning in Angular 2
Databinding and Performance-Tuning in Angular 2
Manfred Steyer
?
Modern authentication solutions in Angular 2 with OAuth 2.0 and OpenId Connect
Modern authentication solutions in Angular 2 with OAuth 2.0 and OpenId Connect
Manfred Steyer
?
Progressive web apps with Angular 2
Progressive web apps with Angular 2
Manfred Steyer
?
ASP.NET Core 1 for MVC- and WebAPI-Devs
ASP.NET Core 1 for MVC- and WebAPI-Devs
Manfred Steyer
?
EF Core 1: News features and changes
EF Core 1: News features and changes
Manfred Steyer
?
ASP.NET Web API Deep Dive - SSD 2016 London
ASP.NET Web API Deep Dive - SSD 2016 London
Manfred Steyer
?
Was bringt Angular 2?
Manfred Steyer
?
Web APIs mit ASP.NET MVC Core 1
Manfred Steyer
?
.NET Summit 2016 München: EcmaScript 2015+ with TypeScript
Manfred Steyer
?
.NET Summit 2016 München: Angular 2 mit TypeScript
Manfred Steyer
?
Wiederverwendbare Komponenten mit Angular 2.0 – Deep Dive
Manfred Steyer
?
Ad

Recently uploaded (20)

Timeline Infographics Para utiliza??o diária
Timeline Infographics Para utiliza??o diária
meslellis
?
Make DDoS expensive for the threat actors
Make DDoS expensive for the threat actors
APNIC
?
Topic 1 Foundational IT Infrastructure_.pptx
Topic 1 Foundational IT Infrastructure_.pptx
oneillp100
?
The it.com Domains Brand Book for registrars, domain resellers and hosting co...
The it.com Domains Brand Book for registrars, domain resellers and hosting co...
it.com Domains
?
PROCESS FOR CREATION OF BUSINESS PARTNER IN SAP
PROCESS FOR CREATION OF BUSINESS PARTNER IN SAP
AhmadAli716831
?
Topic 2 - Cloud Computing Basics,,,.pptx
Topic 2 - Cloud Computing Basics,,,.pptx
oneillp100
?
history of internet in nepal Class-8 (sparsha).pptx
history of internet in nepal Class-8 (sparsha).pptx
SPARSH508080
?
Dark Web Presentation - 1.pdf about internet which will help you to get to kn...
Dark Web Presentation - 1.pdf about internet which will help you to get to kn...
ragnaralpha7199
?
Internet Download Manager (IDM) 6.42.40 Crack Download
Internet Download Manager (IDM) 6.42.40 Crack Download
Puppy jhon
?
原版澳洲斯文本科技大学毕业证(厂鲍罢毕业证书)如何办理
原版澳洲斯文本科技大学毕业证(厂鲍罢毕业证书)如何办理
taqyed
?
最新版美国特拉华大学毕业证(鲍顿别濒毕业证书)原版定制
最新版美国特拉华大学毕业证(鲍顿别濒毕业证书)原版定制
taqyea
?
BASICS OF SAP _ ALL ABOUT SAP _WHY SAP OVER ANY OTHER ERP SYSTEM
BASICS OF SAP _ ALL ABOUT SAP _WHY SAP OVER ANY OTHER ERP SYSTEM
AhmadAli716831
?
ChatGPT A.I. Powered Chatbot and Popularization.pdf
ChatGPT A.I. Powered Chatbot and Popularization.pdf
StanleySamson1
?
Global Networking Trends, presented at the India ISP Conclave 2025
Global Networking Trends, presented at the India ISP Conclave 2025
APNIC
?
05-introduction-to-operating-systems.pptx
05-introduction-to-operating-systems.pptx
pepecompany1
?
IAREUOUSTPIDWHY$)CHARACTERARERWUEEJJSKWNSND
IAREUOUSTPIDWHY$)CHARACTERARERWUEEJJSKWNSND
notgachabite123
?
ChatGPT_and_Its_Uses_Presentationss.pptx
ChatGPT_and_Its_Uses_Presentationss.pptx
Neha Prakash
?
Lecture 3.1 Analysing the Global Business Environment .pptx
Lecture 3.1 Analysing the Global Business Environment .pptx
shofalbsb
?
DDoS in India, presented at INNOG 8 by Dave Phelan
DDoS in India, presented at INNOG 8 by Dave Phelan
APNIC
?
最新版美国威斯康星大学绿湾分校毕业证(鲍奥骋叠毕业证书)原版定制
最新版美国威斯康星大学绿湾分校毕业证(鲍奥骋叠毕业证书)原版定制
Taqyea
?
Timeline Infographics Para utiliza??o diária
Timeline Infographics Para utiliza??o diária
meslellis
?
Make DDoS expensive for the threat actors
Make DDoS expensive for the threat actors
APNIC
?
Topic 1 Foundational IT Infrastructure_.pptx
Topic 1 Foundational IT Infrastructure_.pptx
oneillp100
?
The it.com Domains Brand Book for registrars, domain resellers and hosting co...
The it.com Domains Brand Book for registrars, domain resellers and hosting co...
it.com Domains
?
PROCESS FOR CREATION OF BUSINESS PARTNER IN SAP
PROCESS FOR CREATION OF BUSINESS PARTNER IN SAP
AhmadAli716831
?
Topic 2 - Cloud Computing Basics,,,.pptx
Topic 2 - Cloud Computing Basics,,,.pptx
oneillp100
?
history of internet in nepal Class-8 (sparsha).pptx
history of internet in nepal Class-8 (sparsha).pptx
SPARSH508080
?
Dark Web Presentation - 1.pdf about internet which will help you to get to kn...
Dark Web Presentation - 1.pdf about internet which will help you to get to kn...
ragnaralpha7199
?
Internet Download Manager (IDM) 6.42.40 Crack Download
Internet Download Manager (IDM) 6.42.40 Crack Download
Puppy jhon
?
原版澳洲斯文本科技大学毕业证(厂鲍罢毕业证书)如何办理
原版澳洲斯文本科技大学毕业证(厂鲍罢毕业证书)如何办理
taqyed
?
最新版美国特拉华大学毕业证(鲍顿别濒毕业证书)原版定制
最新版美国特拉华大学毕业证(鲍顿别濒毕业证书)原版定制
taqyea
?
BASICS OF SAP _ ALL ABOUT SAP _WHY SAP OVER ANY OTHER ERP SYSTEM
BASICS OF SAP _ ALL ABOUT SAP _WHY SAP OVER ANY OTHER ERP SYSTEM
AhmadAli716831
?
ChatGPT A.I. Powered Chatbot and Popularization.pdf
ChatGPT A.I. Powered Chatbot and Popularization.pdf
StanleySamson1
?
Global Networking Trends, presented at the India ISP Conclave 2025
Global Networking Trends, presented at the India ISP Conclave 2025
APNIC
?
05-introduction-to-operating-systems.pptx
05-introduction-to-operating-systems.pptx
pepecompany1
?
IAREUOUSTPIDWHY$)CHARACTERARERWUEEJJSKWNSND
IAREUOUSTPIDWHY$)CHARACTERARERWUEEJJSKWNSND
notgachabite123
?
ChatGPT_and_Its_Uses_Presentationss.pptx
ChatGPT_and_Its_Uses_Presentationss.pptx
Neha Prakash
?
Lecture 3.1 Analysing the Global Business Environment .pptx
Lecture 3.1 Analysing the Global Business Environment .pptx
shofalbsb
?
DDoS in India, presented at INNOG 8 by Dave Phelan
DDoS in India, presented at INNOG 8 by Dave Phelan
APNIC
?
最新版美国威斯康星大学绿湾分校毕业证(鲍奥骋叠毕业证书)原版定制
最新版美国威斯康星大学绿湾分校毕业证(鲍奥骋叠毕业证书)原版定制
Taqyea
?
Ad

The newst new Router for Angular 2 ("Version 3")

  • 1. 1 The new Component Router for Angular 2 Manfred Steyer ManfredSteyer About me … ? Manfred Steyer ? SOFTWAREarchitekt.at ? Trainer & Consultant ? Focus: Angular Page ? 2
  • 2. 2 Contents ?(Quick) Overview of Concepts and Scenarios ?DEMO with Angular 2 ?Guards ?DEMO ?Aux-Routes ?DEMO Page ? 4 OVERVIEW Page ? 5
  • 3. 3 What is the Component Router? Page ? 6 New Router- Solution Angular 2 and 1.x Activating Components Lazy Loading Hierarchical Routing Guards Replacement for Lifecycle-Hooks Almost here … Short History Page ? 7 ? Core: Stable ? Moving Parts beyond the core ? New Router/ Component Router ? Breaking Changes: Almost find/replace ? Also back-ported to Angular 1.x Angular 2 BETA: Dezember 2015 ? Newest Router Angular 2 RC 1: May 2016 ? Newest New Router (Version 3) ? Back-porting to Angular 1.x plannend Angular 2 RC 2: June 2016
  • 4. 4 Routing Page ? 8 Logo + Menu Menu2 Footer SPA Placeholder Routing with History API Page ? 10 Logo + Menü Menü2 Fu?zeile SPA Flight -Component /FlightApp/flights
  • 5. 5 Routing with Parameter Page ? 11 Logo + Menü Menü2 Fu?zeile SPA Flight-Edit- Component for Flight #17 /FlightApp/flights/17 Hierarchical Routing Page ? 13 Logo + Menu Menu2 Footer SPA Placeholder
  • 6. 6 Hierarchical Routing Page ? 14 Logo + Menu Menu2 Footer SPA /FlightApp/flight-booking FlightBooking-Component Hierarchical Routing Page ? 15 Logo + Menu Menu2 Footer SPA /FlightApp/flight-booking Options Placeholder FlightBooking-Component
  • 7. 7 Hierarchical Routing Page ? 16 Logo + Menu Menu2 Fu?zeile SPA /FlightApp/flight-booking/flights Optionen Flight- Component FlightBooking-Component DEMO Page ? 17 App Home Flight Booking Passenger Search Flight Search Flight Edit id
  • 8. 8 GUARDS Page ? 18 What are Guards? ?Services ?Can get other services via DI ?Router triggers Guards before activating/ deactivating Components ?Can prevent activation/ deactivation Page ? 19
  • 9. 9 Guards CanActivate canActivate CanDeactivate<T> canDeactivate Result: boolean | Observable<boolean> Configuring Guards Page ? 21 const APP_ROUTES: RouterConfig = [ { path: '/flug-buchen', component: FlugBuchenComponent, canActivate: [AuthGuard], children: [ { path: 'flug-edit/:id', component: FlugEditComponent, canDeactivate: [FlightEditGuard] }, […] ] ] Token
  • 10. 10 Provider for Guards Page ? 22 export const APP_ROUTER_PROVIDER = [ provideRouter(APP_ROUTES), { provide: FlightEditGuard, useClass: FlightEditGuard }, { provide: AuthGuard, useClass: AuthGuard } ]; Provider for Guards Page ? 23 export const APP_ROUTER_PROVIDER = [ provideRouter(APP_ROUTES), FlightEditGuard, AuthGuard ];
  • 12. 12 Aux-Routes Page ? 35 Logo + Menu Menu2 Footer SPA Placeholder Named Placeholder Aux-Routes Page ? 36 Logo + Menu Menu2 Footer SPA Flight- Component Named Placeholder /FlightApp/flights
  • 13. 13 Aux-Routes Page ? 37 Logo + Menu Menu2 Footer SPA Flight- Component Info-Component /FlightApp/flights(aux:info) Aux-Routes Page ? 38 Logo + Menu Menu2 Footer SPA Flight- Component Modal-Component /FlightApp/flights(aux:info/modal)
  • 14. 14 Aux-Routes Page ? 39 Logo + Menu Menu2 Footer SPA Flight-Edit- Component Modal-Component /FlightApp/flights(aux:info/modal)/edit/17 DEMO Page ? 40
  • 15. 15 LAZY LOADING Page ? 41 1 4 3 2 Lazy Loading
  • 16. 16 Summary ? Component Router: New Routing-Solution for Angular 2 and AngularJS 1.x ? Lazy Loading (Coming) ? Hierarchical Routing ? Guards ? Aux Routes Page ? 43 manfred.steyer@SOFTWAREarchitekt.at SOFTWAREarchitekt.at ManfredSteyer Contact