UI-Router evolves the concept of an AngularJS Route into a more general concept of a State for managing complex application UI states. Most notably, it allows nested state/view hierarchies and multiple named views.
0
votes
2answers
16 views
Uncaught Error: [$injector:modulerr]
I am getting an
Uncaught Error: [$injector:modulerr] jquery.js:3855
It seems i have included almost all the dependencies but still i am getting an error
app.js
angular.module('app', ['ui....
0
votes
0answers
8 views
How to prevent reload on -nested- named view, when state changes?
A very similar question has been asked before here:
How do I prevent reload on named view, when state changes? AngularJS UI-Router
But mine is slightly different because I have a named view inside a ...
0
votes
1answer
24 views
UI-Router (resolve) cant pass data into controller
when i run code like this my controller stops working and it happens with all kinds of data passed with resolve, from api or any other way.. i just cant pass anything to my controller
> $...
0
votes
0answers
20 views
How to load a view in angular directly through a URL
I want to access a view in my Angular app. It does work when I go there through a button however when I want to access that view via a link (e.g. by clicking on one) or when I am refreshing the page, ...
0
votes
2answers
21 views
Angular 2 - Webpack 2 - template-loader not working with templateUrl
I've created a minimal webpack example for my Application and I try to use templateUrl with "./file.name.html" to get compiled. But the only thing my Application shows is the name of the templateUrl "....
0
votes
0answers
6 views
ng-infinite-scroll with ng-show and sticky states
In my single page web app, I have two tabs with ng-infinite-scroll in each of them. The two tabs are traversed between using a nav-bar,
<div ng-show="$state.includes('base.videolist')||$state....
0
votes
2answers
23 views
AngularJS: Editing a “pick-one” field in a separate view
I am developing an AngularJS 1 (+ Ionic + ui-router) single page app. Among other things, the app lets 'CRUD' employees and companies.
I am struggling with the "edit employee" page. This page shows ...
0
votes
0answers
24 views
Cannot Resolve State with ui router
I'm trying to use ui router to set states after I pulled pages from a database, but It came up with this error every time I'm trying to click on a sref-link. Here are the app/app.js and the app/index....
1
vote
1answer
27 views
Remove # from URL in angular JS
Hi I am using Angular JS for my Front End, php is the Service layer.
I am trying to remove the # from my url.
Now : http://localhost/loginwithangular/#/login
I want look like : http://localhost/...
0
votes
1answer
25 views
How to add uib-dropdown to a uib-tab to create a simple dropdown menu on a tab made with angular bootstrap?
i'm a novice when it comes to angular js (v1.5) and i'm currently working on a project using angularjs(v1.5), bootstrap 3, UI Bootstrap.
i tried to add the dropdown directive to the tabs directive as ...
1
vote
1answer
461 views
Redirect to a particular child state whenever a particular parent state is found in Angular UI
I want to redirect from a parent state to a particular child state all the time. Please refer below :
$stateProvider.state('dashboard.view-bills', {
url: '/individual/view-bills',
templateUrl:...
0
votes
1answer
161 views
$state.go without reload controller
I want to go to another state / route without reload state controller.
I have tried to do the following code :
$state.go('mystate', params, {notify: false});
but this code not working , and still ...
0
votes
1answer
29 views
Restore scroll position on back
I have a long page of results. When I click on an item (going on a specific item page) and then go back to the page result it could be very useful to restore the scroll position in result page.
I have ...
0
votes
1answer
18 views
weird ui-sref behaviour: old params still remain at URL although trying to change
This is my state definition:
$stateProvider
.state('app.reports', {
url: '/reports?param1¶m2',
templateUrl: 'app/modules/report/views/reports.html',
...
1
vote
1answer
282 views
Angular UI Router state.go and anchor tags
The following element:
<p ng-click="$state.go('state.a',{id: 'subsection-b'})">Click me</p>
is (when clicked) only navigating to the top of my state.a page and not scrolling down to the
...
1
vote
1answer
16 views
Dynamically set router-outlet name
Is it possible to dynamically set the name of a router-outlet in angular 2?
I need to create a generic component that contains a router-outlet.
Template example :
<nav class="nav menu">
&...
59
votes
4answers
18k views
What is the Angular ui-router lifecycle? (for debugging silent errors)
The best I've found is http://www.ng-newsletter.com/posts/angular-ui-router.html. It doesn't go as deep as, for example, the order in which $stateChangeStart, exampleState.onEnter, exampleState....
0
votes
1answer
12 views
controller reloads even though reloadOnSearch is set false
i build a webpage where I have several views but only one controller. As the controller should not reload on page switch I changed all the routes to "/main/{{itemNo}}/?routname". However when ...
1
vote
0answers
39 views
Issue with Parent Child Scope With Modal: Using angular ui router with angular bootstrap modal ($uibModal)
Here is my current code:
Parent Controller
vm.animationsEnabled = true;
vm.open = function (size) {
var modalInstance = $uibModal.open({
animation: vm....
0
votes
2answers
15 views
How to keep $stateparams parameters after i refresh the browser
I have this list of users .. When a user clicks in one of those user in the list.. it will redirect me to my profileState with the associated UID of the user. I use state parameters to pass the UID ...
0
votes
2answers
28 views
angular ui-router $stateProvider states iterate through object properties
I have been trying to dynamically populate the navbar from my states configured in $stateProvider. when i try to get the state name or the url or any other properties I get undefined, I have been ...
-1
votes
1answer
21 views
facebook authentication working with angular ui router [on hold]
How to authenticate with facebook sdk in single page web application? The application is an angular application that would have to be used without azure ad and also be used with angular ui router ...
0
votes
0answers
13 views
scroll to $index on enterState
I use a bootstrap-ui accordion
<uib-accordion close-others="true">
<uib-accordion-group ng-repeat="e in list" is-open="status[$index]" ng-init="status[$index]=false" index="$...
0
votes
0answers
10 views
Unable to Unit Test an Angular Controller with service mocked
I'm starting with angularJs and I'm facing an issue when trying to unit test a controller that have a dependency to a service. The application worked as expected but not the unit test.
I obtain the ...
0
votes
0answers
30 views
How to test Angularjs route's resolve value on component?
I'm using [email protected] and resolve some resource at the route level for one of my component. The component works as expected but my test fails now.
Error
PhantomJS 2.1.1 (Linux 0.0.0) module ag....
0
votes
0answers
13 views
/traceur 404 error while loading angular2 application
While trying to run Angular2 application using ui-router-ng2 I'm getting Error: XHR error (404 Not Found) loading http://localhost:3000/traceur.
Here is the
Project Structure & systemjs.config....
0
votes
1answer
19 views
angularjs routes with the same definition loops
I am using $stateProvider to define my routes, and I'm facing issues where if I have two routes with the same number of path parameters they go in a loop with each other and though I'm using ui-sref ...
0
votes
2answers
34 views
Using typed optional route parameters in ui-router
I am trying to define a single state with an optional integer route parameter.
I have defined the following state in my application
$stateProvider.state('configuration', {
stateUrl: '/...
0
votes
1answer
7 views
Ui-grid with ui-router passing params
I am a beginner (idiot alert)
I am successfully using ui-grid except when they click on an icon in a row it's meant to take them to a new view... The view I'm in showing the ui-grid has a url of
#...
-1
votes
1answer
24 views
How to make a state with different parent state?
Consider a scenario of page layout for my project,
Father ----> His Friends Listing
Father ----> Child ----> His Friends Listing
In route
Father - root.father
Father-->Friends - ...
0
votes
1answer
25 views
I want to access a logout function from my nav bar on any page
I have an authentication process, where I want to be able to access the logout function on any page from my Index.html nav bar, but for some reason I'm not reaching the scope.
I have my app.js ...
0
votes
1answer
39 views
How to enable $locationProvider.html5Mode for modern browser only?
I'm working on the web app using ASP.Net 5 and AngularJS. I have completed it and it works great, but when it was released live I found out it doesn't work in IE9 which is a big part in our company.
...
15
votes
1answer
9k views
Angular UI-Router $urlRouterProvider .when not working *anymore*
Question: Why won't the .when() in my $urlRouterProvider work anymore?
I've picked up a fairly robust angular app. The most recent issue I've been trying to fix with it has been the 'user ...
11
votes
6answers
19k views
Angular UI router handling 404s
I have an app with a service which wraps my API calls:
var ConcernService = {
...
get: function (items_url, objId) {
var defer = $q.defer();
$http({method: 'GET',
...
1
vote
1answer
44 views
Angular JS : iframe not working in Firefox and IE 11
I'm having an iframe in an uibmodal, to which I'm providing a static HTML path (in the same domain). The URL works correctly in Safari, Chrome and iOS Devices. However, it doesn't load in Firefox and ...
0
votes
1answer
25 views
How to redirect to correct state in ui-router?
When a I enter the url "/samsung" I don know what state should be use so it will just match on the first one in this case category.
I have done some reading and I thing I should use the UrlMatcher ...
0
votes
3answers
37 views
How to redirect to home page if I click back button after login in angular JS?
.run(['$rootScope', '$location', 'Auth','$state', function ($rootScope, $location, Auth,$state) {
$rootScope.$on('$routeChangeStart', function (event) {
if (!Auth.isLoggedIn()) ...
0
votes
0answers
20 views
Url change event when absolute url is change in angular
I am having url for
page1 : Application/Controller1/Action1
I redirect to page1 to :
page2 : Application/Controller1/Action1/#/SubAction1/40
Page 1 is in mvc.
Page 2 is in angular.
If i redirect ...
0
votes
2answers
32 views
How to bind a checkbox list using Angular and get all selected value from the checkbox using ng-reapet method
How to bind a checkbox list using AngularJS and get all selected value from the checkbox using ng-reapet method?
I am try to get the value of the selected check box in the angular controller.
View
&...
3
votes
1answer
68 views
Disable URL change with UI-Router in Angular?
Is it possible to configure ui-router in an Angular 1.5 application to completely ignore the address bar?
Desired behaviour is something like this:
Navigating between states via UI does not change ...
0
votes
2answers
230 views
angular ui router back button issue
'use strict';
angular.module('cbApp')
.config(function ($stateProvider) {
$stateProvider
.state('search', {
url: '/college/search',
templateUrl: 'app/collegesearch/views/...
0
votes
1answer
17 views
Angular ui.router resolve not working when ng-controller put in html view
I have the following nested states for the ui-router
index.html
<body ng-app="testApp">
<div ui-view></div>
<body>
view.homepage.html
<div id="header" ng-controller="...
0
votes
1answer
22 views
AngularJS templates not showing on page but are there when page is inspected
I am new to using Angular and Rails and have gotten stuck when I imported my Angular project into a Rails project and split the templates into individual files. Now the nav and footer partials show, ...
0
votes
0answers
4 views
$mdDialog with ui-router
I'm trying to use angular-ui-router ui-views (with nested views) inside an angular material mdDialog, but I cannot find anything on how to achieve that. Is it possible? Or should I use another ...
1
vote
0answers
10 views
Angular Fullstack UI Router not resolving dynamic URL view. Braintree integration
I am using yo angular-fullstack generator with uiRouter. I am integrating Braintree. I am attempting to show the API response as a confirmation page after a transaction is submitted. I can see the url ...
0
votes
1answer
52 views
Is this good practice to use a single templateUrl for multiple routes in Angular js? [on hold]
I am using Angular frame work
My requirement is if I login as admin I have one profile page
If I login as a staff the ten I have same profile(same html) but differnt header ,s idemenu, footer is ...
0
votes
0answers
11 views
angular2 ui-router oauth2 implicit
Using angular2 and UI-router, i don't find any way to map url with the hash that come from an implicit oauth redirect,
ex:
http://somesite.com/#access_token=9a885b89-a9b1-37c9-baa8-a321f83c07d3&...
2
votes
1answer
28 views
How to structure my states and routing in ui-router
I´m building a e-commerce site using angular1 and ui-router (1.0.0.beta3).
But I´m not sure how to setup this up.
This is what I have in mind.
const home = {
name: 'home',
url: '/',
...
0
votes
1answer
8 views
Angular 2 - Error "Property 'iconName' does not exist on type 'StateParams'
I am using ui-router-ng2 to handle my routing in my web app. I am currently sending an string(iconName) as parameters from one view to another.
Here is my code for icon.component.ts
import { ...
-3
votes
2answers
908 views
JQuery is not working with Angular JS
I am using Angular JS to integrate my application with back end, I have one single page application where I have some menu buttons and on click of each menu we need to populate html dynamically. So ...