Routing in SNC
Thus far, our application is in a half-baked state. We have implemented components with NewsComponent as our primary component, which shows the latest news from a news source. We have header and footer components that provide us with the layout of the screen. We have also implemented the services and HTTP call to newsapi to fetch the latest sports news. But, our application currently does not handle any sort of navigation, no hyperlinks that we created in HeaderComponent work, and the web service call needs the name of the news source to fetch the data. This will all be achieved by routing.
Routing is a concept that allows navigation between multiple views in an application. An application achieves routing by defining unique ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access