1. What is angular routing?
Angular router is a mechanism which enables to build single page applications with multiple views and navigation between these views.
Simply, the process of defining navigation element and their corresponding view is called Routing.
The syntax of angular routing is:
Routing modules have all the path to the views as:
2. What is Single Page Application?
Some single page applications are Google, Gmail, Paypal, Facebook, YouTube, GitHub etc.
3. What is the Importance of router-outlet?
Router-outlet is the angular tag which works as a placeholder that loads the different components dynamically based on the current route state. Activated component will takes place inside the router-outlet to load its content. Navigation can be done using router-outlet directives.
4. what is AJAX?
AJAX stands for Asynchronous JavaScript and XML is a technique that is used for creating fast and dynamic web pages. It allows web pages to be updated asynchronously by exchanging small piece of data, this means it updates part of the web page without reloading whole page.
5. How can we make a route as a startup route?
We can make a route as a startup route by bootstrapping module in main.ts file and bootstrapping its component in the app.module class as:
No comments:
Post a Comment