You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
819 B
819 B
What is Routing?
Lesson Objectives
- Describe Routing
- Demo Routing
Describe Routing
- Routing is the process an app uses mimic the feel of traditional navigation
- The process:
- Define a set of URLs for the app to listen for
- When a user visits those particular URLs, the app will load a component into a specific part of the page
Demo Routing
Demo the site in /router. Show the following:
- Clicks on the various links
- Note the nested links for
/about - Note the url params for
/resume
- Note the nested links for
- Demonstrate sharing/bookmarking a URL
- Copy a url like http://localhost:4200/links
- Close the browser
- Reopen the browser
- Paste the link into the URL bar
- Hit Enter
- Note that it takes you directly the "page" whose URL you copied