Linked Questions
32 questions linked to/from What is the difference between angular-route and angular-ui-router?
-5 votes
1 answer
6k views
what is the different between ['ngRoute', 'ui.router']? [duplicate]
var faraWorkspaceApp = angular.module("FaraWorkspace", ['ngRoute', 'ui.router']); what is the different between ngRoute and ui.router in angularjs?
239 votes
8 answers
275k views
AngularJS : How do I switch views from a controller function?
I am trying to use the ng-click feature of AngularJS to switch views. How would I go about doing this with the code below? index.html <div ng-controller="Cntrl"> <div ng-click="...
140 votes
10 answers
130k views
AngularJS UI Router - change url without reloading state
Currently our project is using default $routeProvider, and I am using this "hack", to change url without reloading page: services.service('$locationEx', ['$location', '$route', '$rootScope', function(...
15 votes
3 answers
14k views
AngularJS - Best way to update $route parameter
I have several routes that are different, but contain similar parameters. Example: when '/user/:accountId/charts/:chartType', controller:ChartsController when '/manager/:accountId/charts/:chartType', ...
17 votes
1 answer
110k views
state provider and route provider in angularJS
Below is my app.js file angular .module('repoApp', [ 'ngAnimate', 'ngAria', 'ngCookies', 'ngMessages', 'ngResource', 'ngRoute', 'ngSanitize', 'ngTouch', 'ui....
0 votes
1 answer
7k views
Which is better ng-view or ui-view? [closed]
For big projects ui-router is preferred. But the main advantage it gives is nested view. But that can be achieved by ng-view also. So which one to choose?
6 votes
2 answers
10k views
How to pass param in routeProvider in Angular JS?
I use routeProvider in Angular JS: .when('/profile/personal', { templateUrl: 'personal.html', controller: 'EditProfileController' }) How I can pass param to controller ...
10 votes
2 answers
6k views
Preload ng-view for smoother navigation
I'm using $location.path() to load new view inside my angular web site. My page looks like : <html> <head> </head> <body> <div data-ng-view="" ></div> </body&...
5 votes
2 answers
3k views
ui router vs ngroute for sinlge page app
I am starting a new angular project(a single page app), which will have complex views (dialogs, wizards, popups, loaders), though exact requirements are not so clear at the moment. Should I use ui....
8 votes
3 answers
3k views
AngularJS : Load js file through UI router
I have AngularJs ui router in my application. I need to load js file based on my state. .state('root.home',{ url: '/index.html', views: { 'header': { ...
1 vote
1 answer
3k views
Angular UI Router VS ngRoute - mini-test
In a mini test that I made there were 4 (true/false) questions about UI Router VS ngRoute. I did the test and my research, but I am not sure about my answers. Can someone please confirm and help me ...
4 votes
2 answers
4k views
How to update content based on sidebar in AngularJS
I asked a question yesterday How to do multiple views with Angular to support header and sidebar? and based on that question I was able to make some progress in having a header and a sidebar for my ...
2 votes
1 answer
1k views
AngularJS fade view in/out
I am working on creating a weather module for my SPA with Angular 1.4 and attempting to fade my a view out as the other fades in, when the user clicks a button to retrieve the forecast for their city. ...
0 votes
3 answers
2k views
Angular error: Error: [$injector:unpr] Unknown provider: $stateProvider
I've read through the other related threads on the subject and tried their recommended solutions but I can't figure it out. As far as I can tell, ngRoute is being correctly linked to the project via ...
0 votes
3 answers
1k views
AngularJS - Navigate to another view via $state.go
I am using the Ionic Framework to create a single page app for mobile. I have a tab based structure for the profile page. Inside the "Home" view, I have a link "Edit Profile" once clicked it should ...