6
How to use Angular UI Router? and what are the advantages ?
What are the long-term advantages of using it and not the standard of Angularjs?
6
How to use Angular UI Router? and what are the advantages ?
What are the long-term advantages of using it and not the standard of Angularjs?
19
He’s much better and more powerful than the native angler, I’m going to make a basic comparative:
<ng-view>
, If you have more than one, Angular will inject the same content into all <ng-view>
inside of another, there it was, will generate recursiveness<ui-view>
on the same page and inject a template with its own controller into each one<ui-view>
within the other for routes within routes without problems, and having full control of the injected content and behavior of eachIt’s a lot like the ngRoute
:
app.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/home');
$stateProvider
.state("home", {
url: "/home",
templateUrl: "home-template.html",
controller: "HomeController",
});
});
Browser other questions tagged angularjs
You are not signed in. Login or sign up in order to post.
You cannot make the answer simpler and more objective, but if you want to buy a little more time, open the second link @anisanwesley mentions: https://scotch.io/tutorials/angular-routing-using-ui-router
– Milrak Pereira Pessoa