Angular 2 rout config

What is Routing in Angular 2?

Angular2 Routing provides us to navigation and URLs manipulation capabilities.

This post helps us to learn application “Routings” in Angular 2.

In the below routing example I am using Angular 2 for the client side and ASP.NET Core with single page application (SPA) for the server application.

“The Router is use to map applications URLs to application components. There are three main components that you are using to configure routing.”
1.     Routes: - It uses to describe our application's Routes.
2.     Router Imports: - It uses to import our application's Routes.
3.     RouterOutlet: - It is a placeholder component and use to get expanded to each route's content.
4.     RouterLink: - It is use to link to application's routes.

All above directives are provided by the Angular RouterModule package.
ANIL SINGH

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..
My Blogs - https://code-sample.com and https://code-sample.xyz
My Book1 - BEST SELLING ANGULAR BOOK (INCLUDING ALL VERSIONS 2, 4, 5, 6, 7)
My Book2 - ANGULAR 2 INTERVIEW QUESTIONS BOOK - Both Books are Available on WorldWide.

www.code-sample.com/. Powered by Blogger.