if you navigate to /lessons then AllLessons component gets displayed.if you navigate to /home then the Home component gets displayed.What we are doing in this initial configuration is to map certain URL paths to Angular components: meaning that if there is a path match then the component gets displayed: The first thing that we should do is simply write some routing configuration. For learning all about the benefits of the SPA architecture, have a look at this post. The Angular Router is what makes an Angular Application a Single Page Application, or SPA. Auxiliary Routes: what are they and when are they useful?Īngular Router Configuration: an Introduction.The notion of Route Snapshot and Router Snapshot.Master-Detail with Child Routes - how do Child Routes work?.Setup a home route and a fallback route, learn why order matters.Initial Router Setup and configuration, avoiding a usual setup pitfall.In this post, we will cover the following topics: This post is the first of a series on the Angular Router, here is the complete series:Īngular Router Fundamentals: Child Routes, Auxiliary Routes, Master-DetailĪngular Router: A Complete Example (with Bootstrap) Table Of Contents The goal is to get a solid initial understanding of the Angular Router, before presenting a more advanced example. In this post, we are going to do a guided tour of the main routing configuration concepts needed to use the Angular Router effectively.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |