December 2017
Beginner
372 pages
10h 32m
English
Now that we have defined our routes, we need to tie these routes with our user actions. Angular's routing module provides us with the directive that helps us define the URL segment, which in turn is used by the routing engine to map the respective route. Let's look at our HeaderComponent template where we have defined our user options and attached the routing directive:

In large-scale applications, we may have sub-menus and sub-options, but for our application we will just have these four menu options, each displaying the news articles for their respective website. The menu options are tied to the route using the ...
Read now
Unlock full access