diff --git a/learning/dashboard/angular_routing/Routing/README.md b/learning/dashboard/angular_routing/Routing/README.md new file mode 100644 index 00000000..6556d28d --- /dev/null +++ b/learning/dashboard/angular_routing/Routing/README.md @@ -0,0 +1,114 @@ +# ANGULAR + + +Angular is a development platform, built on TypeScript. As a platform, Angular includes: + + A component-based framework for building scalable web applications. + + A collection of well-integrated libraries that cover a wide variety of features, including routing, forms management, client-server communication, and more. + + A suite of developer tools to help you develop, build, test, and update your code. + +With Angular, you're taking advantage of a platform that can scale from single-developer projects to enterprise-level applications. Angular is designed to make updating as straightforward as possible, so take advantage of the latest developments with minimal effort. + + +## **Angular Installation** + + +To install Angular using CLI write this line on your terminal, + ``` npm install -g @angular/cli ``` + +To create workspace named my-app, + ``` ng new my-app ``` + +To run the application enter the following lines on your terminal, + ``` cd my-app ``` + ``` ng serve --open``` + +After this the Angular application will be launched on your browser at localhost:4200, +(default port for Angular based apps). + + +# ROUTING IN ANGULAR + +- ## **What is Angular Routing** + + +

In a single-page app, you change what the user sees by showing or hiding portions of the display that correspond to particular components, rather than going out to the server to get a new page. As users perform application tasks, they need to move between the different views that you have defined.

+ +

To handle the navigation from one view to the next, you use the Angular Router. The Router enables navigation by interpreting a browser URL as an instruction to change the view.

+ +

To explore a sample app featuring the router's primary features, see the example below +router.zip file with the reference link.

+ + + +- ## **How to Use Angular Routes** + + +Using Angular routes in a single-page application +It describes how to build a single-page application, SPA that uses multiple Angular routes. + +In a Single Page Application (SPA), all of your application's functions exist in a single HTML page. As users access your application's features, the browser needs to render only the parts that matter to the user, instead of loading a new page. This pattern can significantly improve your application's user experience. + +To define how users navigate through your application, you use routes. Add routes to define how users navigate from one part of your application to another. You can also configure routes to guard against unexpected or unauthorized behavior. + + +# DATA PASSING + + +## Data passing in Angular + +