What is routing in AngularJS?

0 votes
What are the things that routing does and for what purpose it is generally used in web site?
Feb 6 in Angular by kartik
• 10,760 points
29 views

1 answer to this question.

0 votes

Routing is just another way of fixing some content dynamically as part of your application.It is a key part of all websites and web applications in one way or another. 

It plays a central role in static HTML pages as well as in the most complex React web applications. Routing comes into play whenever you want to use a URL in your application.

Routing is an important part of modern web applications. If want to build a web app that allows users to create custom fundraising pages to raise money for important causes, you’ll need routing for quite a few reasons, including:

  • In general, to allow people to provide external links to your web app
  • Public fundraising pages need to be reliably accessible by everyone, and you need a URL that’ll route them to the right page
  • Different parts of the admin interface require it. Users need to be able to move forward and backward in their browsing history
  • Different parts of your site need their own URL, allowing you to route people to the right section (for example, /settings, /profile, /pricing)
  • Breaking up your code by page helps promote modularity and lets you break up your app.

Routing generally does three things:
1.Get to the location. (hashed URL).

2.Get new content(view/html)

3.inject into current(page's) html/DOM.

However, Routing is most commonly used for single page application that divides application into several logical parts(views) and based on navigation these view or pages will be fetched individually or independently.

[Note] : Whenever i say routing it is not only available in the client side but also available at the server side.

answered Feb 6 by Niroj
• 21,680 points

Related Questions In Angular

0 votes
1 answer

What is so different about interpolate in AngularJS?

hii @kartik, In order to know about what ...READ MORE

answered Feb 4 in Angular by Niroj
• 21,680 points
76 views
0 votes
1 answer

Which module is used for routing in AngularJs?

The ngRoute module helps your application to become a ...READ MORE

answered Feb 4 in Angular by Niroj
• 21,680 points
27 views
0 votes
1 answer

What is Scope Parameter in AngularJS?

Hey @kartik, Scope Parameter is a collection of ...READ MORE

answered Feb 5 in Angular by Niroj
• 21,680 points
50 views
0 votes
1 answer

What is isolated Scope in AngularJs?

Hello kartik, As we know Scope is a ...READ MORE

answered Feb 5 in Angular by Niroj
• 21,680 points
30 views
+1 vote
1 answer

What is the relationship between angularjs Scope with controller/view?

Let us consider the below block: <div ng-controller="emp"> ...READ MORE

answered Jan 20 in Web Development by Niroj
• 21,680 points

edited Jan 21 by Niroj 67 views
+1 vote
1 answer

What is css box module?

Hey, All the element present in html follows ...READ MORE

answered Jan 20 in Web Development by Niroj
• 21,680 points

edited Jan 21 by Niroj 53 views
0 votes
1 answer

Explain the difference between visibility:hidden; and display:none?

hii, visibility:hidden; and display:none are totally different used ...READ MORE

answered Jan 20 in Web Development by Niroj
• 21,680 points
349 views
+1 vote
1 answer

How to access the Angularjs scope of a particular html element from our console?

Hello, You should follow the below steps:-- 1.Compile and ...READ MORE

answered Jan 21 in Web Development by Niroj
• 21,680 points

edited Jan 21 by Niroj 52 views
0 votes
1 answer

What is $watch() and it's use in AngularJS?

$watch() function is used to watch the ...READ MORE

answered Feb 3 in Angular by anonymous
• 21,680 points
74 views
0 votes
1 answer

What is $parse in Angularjs

Before we jump into the topic you ...READ MORE

answered Feb 4 in Angular by Niroj
• 21,680 points
129 views