What is UI-Router in AngularJs?

0 votes
What is the use of UI-Router instead we are having ngRoute that is  doing the same work?
6 days ago in Angular by kartik
• 1,910 points
20 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.

In Client side Routing there are several way of achieving but the common one is: 

  •  ngRoute
  • UI-Router
Both the router provides the routing concept but most of the developer using the UI-Router because of the having more flexibility and provide more feature and capability than ngRoute.
  • UI-Route is build by Angular team.
  • It fully replace ngRoute and is more powerful  than ngRoute
  • It is developed around the state which is opposed to ngRoute.
So now, the question arise what is state in UI-Router.
    It is bit more than route. A more comprehensive navigation criteria that holds the route related information and its behaviors.
 
In Short we can say that UI-Route describes how the UI looks like when navigation occur or when a route is triggered or when we switched to different route.
answered 6 days ago by anonymous
• 3,230 points

Related Questions In Angular

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
• 3,230 points
25 views
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
• 3,230 points
25 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
• 3,230 points
22 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
• 3,230 points
14 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
• 3,230 points

edited Jan 21 by Niroj 29 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
• 3,230 points

edited Jan 21 by Niroj 30 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
• 3,230 points
57 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
• 3,230 points

edited Jan 21 by Niroj 31 views
0 votes
1 answer

What is the service that is used to configure the UI-Router and ngRoute in AngularJs?

Routing comes into play whenever you want ...READ MORE

answered 6 days ago in Angular by anonymous
• 3,230 points
12 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
• 3,230 points
31 views