Angular router from angular core team member and creator of the router
From Angular core team member and creator of the router About This Book Written by the creator of the Angular router, giving you the best information straight from the source Get full coverage of the entire Angular Router library and understand exactly how every command works Essential for all serio...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, England ; Mumbai, [India] :
Packt Publishing
2017.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630319606719 |
Tabla de Contenidos:
- 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.