In the last lecture we defined four routes in our Angular application. So, when we type the path in the URL, based on the path, the route is determined and a view is rendered. But what if we type a path in address bar for which no route is determined?
In that case, angular will throw an error and that error can be seen in developer console. To avoid this error, we can add a wild card route which matches every route. So, when a route is not found for a given path, the wild card route will be used and its view will be rendered in the page.
In this lecture you will learn:
1. What is wild card route?
2. How and where to define the wild card route.
3. Create a view for wild card route.
DOWNLOAD SECTION SOURCE CODE HERE: drive.google.c...
5 окт 2024