N
N
Nick Nesterov2015-12-14 12:54:07
Angular
Nick Nesterov, 2015-12-14 12:54:07

ui-router vs angular-route.js. What's better?

I have been using the standard angular-route.js for a long time and it was enough for me until I had a project with users who have different roles. And quickly rummaging through the Internet, I noticed that ui-router solves this problem well. The question is, what is generally better to use? angular-route.js or ui-router? is there an analogue of $stateParams in angular-route.js? How are things going with the # in ui-router and fixing it? Which is better indexed by search engines angular-route.js or ui-router?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nicholas, 2015-12-14
@healqq

Which is better indexed by search engines angular-route.js or ui-router?

It doesn't matter if the links are ok. Another thing is that ui-router does this itself when using the ui-sref directive.
All the same, through $location we enable html5Mode.
angular-route has $routeParams
Before the release of angular 2, you can safely use ui-router, because there are such tasty things as:
1. nested states
3. multiple views
2. ui-sref
...

S
Sergey, 2015-12-14
Protko @Fesor

uiRouter is better than ngRouter, in fact, no one has been doing serious projects on ngRoute for a long time.
another thing is that angular/router is better than uiRouter but it is not yet ready to be used in production.
Well, a new version of uiRouter will be released soon.
Search engines don't know how to index it, that's all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question