-1
votes
0answers
8 views

Angular UI bundling with webpack and without requirejs

I had provided with webpack.config.js as the entry point with my app.js with all the stateproviders, but it is not loading all the dependencies. My question is whether by using webpack can we bundle ...
0
votes
0answers
20 views

angular ui router - Google cached page doesn't prepend host URL

In my angular application , we have same code snippet.. 1) for user profile <div class="float-left"> <a ui-sref="user-profile({profilename:war.user['username']})" > <cl-image public-...
1
vote
2answers
32 views

Is there any size limit in URL/states names using ui-router?

I am facing a problem with creating an AngularJS route with limited characters, but once i change the route name with > 3 characters, its working. please see my below code: var mainApp = angular....
0
votes
0answers
13 views

ui-router resolve multiple values inside callback

I'm using angularjs 1.6 and ui-router. I am resolving data from a rest api to bind to a component in a ui-router state. The code below works but the server also returns a header: 'X-Total-Count', ...
0
votes
1answer
14 views

Nested states logic and difference between <ui-view> - ui-router and <router-outlet> - router module directives

Short-hand routs definition for ui-router in angularjs: { state:'index', url:'', controller:IndexController, templateUrl:'/index.html' }, { state:'index.child', url:'/child', ...
0
votes
1answer
13 views

UI Router - How to ensure templateUrl reloads for every call

I am using angular js 1.6 and ui-router. I have a requirement where I need to refresh the ui-view everytime I click a link $stateProvider.state({ name : 'taskDetails', templateUrl : '/test/...
0
votes
0answers
16 views

ui-sref using ^. to navigate to higher parents

Like the title suggests, I am using angular-ui-router. I have a state set up like this: .state('home.dashboard.groups.questions.answers.formulas', answerFormulasRoute()); When on that route I can ...
1
vote
0answers
28 views

State 'x' is already defined AngularJS ui.router

I include a multi-step form in my projet, it works but I have an error on some others pages. Here is the code I used to include the multi step form. Multi-Step form And the error I have Error: ...
0
votes
0answers
10 views

ui-router, overwriting the state's parent property based on URL parameter

//ui-router, angular 1.x So I have a state, that can be navigated from multiple other states. However, I also have a breadcrumbs solution, that traverses all of the parents and constructs a path all ...
0
votes
1answer
19 views

UI Router $stateParams are only readable

I'm currently passing in an id to a new state with $stateParams. Works fine, but what if the user reloads the page? Obviously, there will not be any values in $stateParams. The work around for this ...
0
votes
0answers
34 views

How can I create two different app inside one angular project?

I am using angular 1 and I have two different apps with two different domains .. I want to put them on one angular project and make one form login for both of them ..some user can go to the first app ...
1
vote
0answers
8 views

ui router define state on module lazy loaded

I'm working on an application with restricted access. In order to improve the files I'm trying to move some of my states to the module it belongs. I'll try to explain the situation. Let's say I have ...
0
votes
0answers
18 views

Angular ui-router reload child controller, but doesn't do for parent

I'm using Angular ui-router. I have a parent state called panel. I have another state called panel.dashboard (child of panel) Panel 's controller never reinitialize, but panel.dashboard always ...
0
votes
1answer
27 views

Error: [ng:areq] Argument 'fn' is not a function, got Object

Versions: angular v1.6.4 ui-router v0.3.2 I am in the process of converting a large angular application to be built using webpack. Since I setup the build process I'm getting this error repeated ...
0
votes
1answer
11 views

Transiton Hook not working angularjs

I want to listen for a transition success on my controller what i've done so far: SignupController.$inject = ['$transitions']; function SignupController($transitions) { var vm = this; vm....
1
vote
0answers
19 views

angular ui-router dot in url query parameter angular

As something that I cannot control, I get a query string with certain parameters. In my htaccess file, I rewrite that query string to place those parameters in a URL and separate them with slashes. ...
0
votes
0answers
18 views

Pass (hidden) data with $location.url

I'm getting a server response on a request that includes the following: redirect_url job_name I'm using angular's $location.url(redirectUrl) to navigate to the redirect url, which may have query ...
0
votes
2answers
22 views

$stateParams won't pass the values

I am trying to pass an object by a simple $state.go(), but all I get is default values 0 and "" angular ui router: placesApp.config(($stateProvider, $urlRouterProvider) => { $...
0
votes
1answer
26 views

Dynamically setting the width of a container based on item widths returned from an Angular component

I'm using Angular JS 1.6 & UI Router for routing. I'm trying to create a layout that is completely horizontal. It's basically a "feed" of content coming from an Angular service and it uses a ...
0
votes
2answers
48 views

Unable to remove # in AngularJS

The application is making use of the following: AngularJS (v1.6.4) webpack ui-router One requires the path to be independent of the # in the url. For this I have added the following in the code: ...
0
votes
0answers
13 views

Angular SPA can't change nested views [duplicate]

I'm trying to build an angular SPA with angular-ui-router that searches artists from The Spotify Api After an artist search and binding artists images and names from all results on my home.html I need ...
0
votes
1answer
31 views

How to optimize AngularJS config function

I have following config functions and run functions in my app.js file. What is the best way to optimize these function method ? can we move these into one single config function ? Or Can we move these ...
0
votes
1answer
24 views

How to do first login page properly?

I have following HTML structure <% include header.html %> <% include sidebar.html %> <div class="robust-content content container-fluid"> <div class="content-wrapper"> &...
0
votes
0answers
17 views

angular-ui-router 1.0 route interception changes state but doesn't change url

I've been dabbling with angular-ui-router 1.0 but I'm encountering an issue when creating a state interceptor. My ui.router 1.0 example below "works" as in it redirects the user to the login state ...
0
votes
0answers
22 views

Angular ui router shared param object between states with components

I am writing an angular app where a parent controller manages the global state, and it transitions between states to display information to users. I followed this answer and used params to send ...
-2
votes
0answers
23 views

Need help converting $stateProvider functionality into $routeProvider

In my codebase I use $routeProvider, but I want to include functionality similar to this $stateProvider example. What would be the $routeProvider equivalent to the following code? angular .module(...
0
votes
1answer
36 views

Prevent next state in angular-ui-router

How can I do that with ui-router? In ng-route I'm using this syntax : router .when('/login',{ templateUrl:'app/view/page/users/login.html', isLogged:true }) app run $rootScope.$on('$...
1
vote
0answers
31 views

prevent next state Angular ui-router

How can I do that with ui-router? In ui-router I'm using this syntax : router .when('/login',{ templateUrl:'app/view/page/users/login.html', isLogged:true }) app run $rootScope.$on('$...
0
votes
1answer
37 views

Angular.js - Not understanding why my controller function isn't firing

This is taken from Jason Watmore's tutorial on building an Angular.js modal window: http://jasonwatmore.com/post/2016/07/13/angularjs-custom-modal-example-tutorial This is a separate file called ...
0
votes
0answers
6 views

Access Local Browser Template urls in Live site using angular js routes

Can any body suggest how to use my localhost:3000 template URLS in the Live site Url. So here in host unable to give the absolute path So my motto is need to develop my app in local with live site ...
0
votes
0answers
14 views

Webpack usage without requirejs

I have given in webpack.config.js the entry point as my app.js with all my stateproviders but it is not loading the dependencies. So my question is thus. By using webpack can we bundle angular ui ...
5
votes
3answers
70 views

How to make href in button inside collapse

I have a collapsed model which show more information about client, and insid it, I have a button, when I click, I don't get the informations of the specific client, I get data of all clients <ion-...
2
votes
2answers
60 views

AngularJS : access scope object from parent to child

Query : Want to access the Main Controller scope object into ui-view states. Problem Statement : Here, I am creating one scope object($scope.myVar) based on the response getting from the API that ...
0
votes
0answers
17 views

Angular + Ui Router prevent scrolling to top of page when clicking on anchor

I'm trying to create smooth scrolling in Angular for my site where I can scroll between anchors on the home page. For this I have the following directive: app.directive('changeClassOnScroll', ...
0
votes
0answers
14 views

jhipster multiple dialog for the same entity

I have a jhipster application with a the default form for each of my entities, but I need a form that will have filtered information from DB, so in essence I would like to know what changes I need to ...
0
votes
1answer
14 views

ui-router child views not running controller

Trying to get the following url structure to work: /page/ /page/article /page/article/third-level-1 /page/article/third-level-2 Ive tried the follow but it doesn't render the article view at all. ...
0
votes
1answer
22 views

How can i persist view content when state change?

Is there any way to persist content from named ui-view when i change the state ? I really need it to do a multiple window behaviour. Here is the plunker, when clicking main 3 or main 4 i want to ...
0
votes
0answers
26 views

Redirecting with AngularJS/OIDC not working in IE 11

I have some SPA code that's using Manfred Steyer's OIDC client and Identity Server as the Token Service it works great in Chrome & Firefox. But for some reason or another it's not working in IE 11....
0
votes
2answers
26 views

Angularjs ui-router- 404 not found on refreshing page

I have 3 pages: index (parent page), home and signup. I made one controller signup controller have one function signup to print in the console the user came from the form input. When I remove the ...
0
votes
1answer
17 views

State transitions in ui-router and resolve from a parent abstract state

I want to show a loading animation during state transitions in a Angular ui-router application. Check out the following code $stateProvider .state("app", { abstract: true, url: "", ...
0
votes
1answer
28 views

How to include an angular view in another view with the same controller?

How can you put a number of "child" views into a "parent" view in Angular 1? I think it is related to "Multiple Name Views" with UI Router, but I don't see a way to specify the parent view. (The ...
0
votes
0answers
14 views

Get current scope(context) inside its own onEnter() on ui-router 1.0.0 for Angular 1.5

In the older version of ui-router we can access the current state's scope, but in the newer version 1.0 I don't see a way to do it. Is there a workaround to access the current context using this? The ...
0
votes
0answers
17 views

How to make Angular $stateProvider Built-in Service available when using Webpack

I'am using webpack to bundle multi Java Script files (Angular1.x) to one: app.bundle.js. When I call the page (jsp) where the app.bundle.js is embedded. (The configured output in: webpack.config.js), ...
0
votes
2answers
40 views

angular ui-router change url with no controller reload

I'm working on a project with angular 1.6.x and ui-router 1.0.x I want to change the browser url without reloading states, to do so I tried this : $state.transitionTo($state.$current.name, {...
0
votes
1answer
36 views

angular-ui-router 1.0.x: event.preventDefault & event.defaultPrevented alternative

I just replaced the $stateChangeStart with $transitions.onStart $rootScope.$on('$stateChangeStart', function(e, ...){ e.preventDefault(); // other code goes here... }); to $transitions....
0
votes
0answers
33 views

onSuccess Transition Callback UI-router

I want to do some action when a particular state has been successfully transitioned. I have the following routing: angular.module('CurrencyModule') .config(function ($stateProvider, $...
0
votes
0answers
15 views

ui-router, trigger ngClass in root state view

I have a root state app which loads a navigation menu. I'd like to expand certain part of the menu if users are visiting certain pages. For example, when people are viewing app.parent1 or app.parent1....
0
votes
1answer
31 views

ng-model not working in ui-router nested view

I have the following code structure index.html <body ng-app="jobPortalApp" ng-controller="mainController"> <div ui-view></div> </body> then following is my homepage.html ...
-1
votes
0answers
47 views

Angular router navigate back to parent

Let say I have a router and a component at URL users/<userId>/orders/<orderId>/item/add I have a cancel button which when clicked should take the user back to the order details (user....
1
vote
1answer
16 views

Unexpected window.confirm behaviour while hooking into angular-ui-router $transitions API

I've got this listener setup on a form of mine that checks for a state transition to occur via angular router. When the listener is tripped it checks if the form is dirty, if it is it throws a window....