
Angular Router
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Person
Victor Savkin has been on the Angular team since the inception of Angular 2. He developed dependency injection, change detection, forms, and the router. Victor has worked for many years as a software architect helping to build large Angular applications. He gives talks and writes articles on front-end architectures for InfoQ, DZone, Hackerbits, and his blog. Nrwl.io - Angular consulting for enterprise customers, from core team members Victor is co-founder of Nrwl, a company providing Angular consulting for enterprise customers, from core team members.
Content
- Cover
- Credits
- About the Author
- www.PacktPub.com
- Customer Feedback
- Table of Contents
- Preface
- Chapter 1: What Do Routers Do?
- Router configuration
- Router state
- Navigation
- Summary
- Isn't it all about the URL?
- Chapter 2: Overview
- URL format
- Applying redirects
- Recognizing states
- Running guards
- Resolving data
- Activating components
- Using parameters
- Navigation
- Imperative navigation
- RouterLink
- Summary
- Chapter 3: URLs
- Simple URL
- Params
- Query params
- Secondary segments
- Chapter 4: URL Matching
- Backtracking
- Depth-first
- Wildcards
- Empty-path routes
- Matching strategies
- Componentless routes
- Sibling components using same data
- Composing componentless and empty-path routes
- Summary
- Chapter 5: Redirects
- Local and absolute redirects
- One redirect at a time
- Using redirects to normalize URLs
- Using redirects to enable refactoring
- Chapter 6: Router State
- What is RouterStateSnapshot?
- Accessing snapshots
- ActivatedRoute
- URL
- Params
- Data
- Query params and fragment
- Chapter 7: Links and Navigation
- Imperative navigation
- Router.navigate
- Passing an array or a string
- Passing matrix params
- Updating secondary segments
- Relative navigation
- Forcing absolute navigation
- Navigation is URL-based
- Passing query params and fragment
- RouterLink
- Active links
- Exact matching
- Adding classes to ancestors
- Summary
- Chapter 8: Lazy Loading
- Example
- Just one problem
- Lazy loading
- Referring to lazily-loaded module
- Deep linking
- Sync link generation
- Navigation is URL-based
- Customizing module loader
- Preloading modules
- Enabling preloading
- Custom preloading strategy
- Chapter 9: Guards
- CanLoad
- CanActivate
- CanActivateChild
- CanDeactivate
- Chapter 10: Events
- Enable tracing
- Listening to events
- Grouping by navigation ID
- Showing spinner
- Chapter 11: Testing Router
- Isolated tests
- Shallow testing
- Integration testing
- Summary
- Chapter 12: Configuration
- Importing RouterModule
- Configuring router service
- Enable tracing
- Use hash
- Disable initial navigation
- Custom error handler
- Appendix: Fin
- Bug reports
- Example app
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.