0
votes
0answers
6 views

Angular 2 app: route content is blank on iOS

I am having a weird issue, with my routes in my angular app. This issue only happens on iOS Whenever i click on one of my route links in my navigation menu, the page navigates to that route, but the ...
0
votes
0answers
21 views

Angular.js Authentication with Node.js

I'm unable to login with front-end might be problem with Angular-ui-Router. When I click on login button first I got an error as 'Possibly unhandled rejection' then I injected '$qProvider' in config ...
0
votes
1answer
22 views

unable to display the view using UI-Router $StateProvider

I am creating a angular application using Angular 1.6.3 components and navigation using UI-Router. But I am not able to get the screen displayed when using UI-Router. I am not getting any error in the ...
2
votes
1answer
18 views

AngularJS - I want to open a new page with user details

I have a view that shows a list of users, and i want to open a User Details page, when the user clicks on the link. It loads the "Users.html" page, when I click on the href, the URL on browser ...
0
votes
1answer
19 views

set marker in map using angular JS

I am working on am application. There are two pages. In the first page, i am showing the country and there lat & lng. When I click on any country it redirect to 2nd page. In this page I am showing ...
1
vote
0answers
44 views

Angular controller being called twice (multiple times)

I've got an issue with controller being called twice in an Ionic app These are my states $stateProvider.state('connected', { abstract: true, url: '/{deviceId}', template: '&...
0
votes
1answer
44 views

Ng-Repeat showing irregular behavior with one time binding

I am having a ng-repeat directive that is running on the array on object. I am facing a specific scenario in which, When I Bind my object properties with one time binding they are now getting ...
1
vote
4answers
40 views

How to send parameters in Angularjs $state.go?

I am developing AngularJS application. I am trying to send values in $state.go to different states. I am trying as below. This is my state: $stateProvider .state('Registration.OTPVerification', { ...
0
votes
0answers
30 views

How to use diffrent function for different routes from one Controller in Angular JS?

Can I define in ui-router routes which function has to call on particular routes from one controller? Like I have two functions in a controller and both are different. like this - app.controller('...
0
votes
0answers
22 views

Angular Resolve Bindings Always Undefined

I've just about given up on figuring out what I've done wrong here... No matter what I try my component binding is always undefined even though I can clearly see data coming across. config: .state('...
0
votes
0answers
27 views

Angular ui.router only load one file, can't look elsewhere for templateUrl

I think I just don't understand something but here's my case : I'm using a view engine in my "app.js" file app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'ejs'); Using ui-...
0
votes
0answers
29 views

Call on $state.go not working in unit test

I work on an app based on Angular 1.5, angular-ui-router and WebPack for which I want to make unit tests on module declaration part, especially on state configuration (I want to test source code of ...
0
votes
1answer
29 views

Can a CSS class selector be applied to a component?

I have the following Plunker that uses ui-router and Angular's 1.6x new component feature. The state 'userRegister' becomes active then initialises the 'userRegister' component. This component ...
0
votes
1answer
28 views

ui-router parent state optional parameter

I am trying to manage CRUD for lists and list elements. I want to have one state, one template and one controller per element for each case(create/edit). I create the state: state('list', { ...
0
votes
1answer
30 views

Recieved Data is not showing at ui-view in angular JS?

I am creating a website using angular JS which is online advertisement booking. I am using RestAPI for getting data from backend like newspapers, categories etc.What I have to do in this is that to ...
0
votes
1answer
20 views

How to nest states in angularjs?

Hi I am developing Angularjs application. I am new to Angularjs. I am facing some issues in Nesting of UI states. My requirement is to develop forgot password page. Flow will be as below. ...
0
votes
0answers
125 views

Angular Router - Using abstract state to access service

Using mean.js: I have a large application that is divided by say, offices. Each office accesses the same application in the same way, but employees of an office may only access information pertaining ...
1
vote
1answer
22 views

Angularjs ui-router state definition

In an angular ui-router tutorial, all states are defined in the same js file. myApp.config(function($stateProvider) { // An array of state definitions var states = [ { name: 'hello', url: '/...
0
votes
0answers
17 views

Using Spring Boot Security with static pages, Angular JS and ui router

I am working on a Spring boot project with spring security and I want to use AngularJs and Ui-router in the client side. I want to know how to make a single page application with one index.html file (...
0
votes
1answer
31 views

Angularjs: Resolve url param via server response

I have working code like this app.ts function getYear(): number { const date = new Date(); let year = date.getFullYear(); } $urlRouterProvider.when("/", `/year/${getYear()}`); $...
0
votes
0answers
13 views

angular auto validation with state change not working

I'm trying to implement some validation in my app, i have a form where i have some data, but only date from the first tab is required to submit a successfull form. The thing is that i want the data ...
2
votes
1answer
19 views

How to access previous state in ui-router $transitions?

Here is my .run function: .run(function ($transitions, UserService) { $transitions.onStart({ to: function(state) { return state.data != null && state.data.requireLogin === true &...
0
votes
2answers
18 views

ui-router $stateChangeState event cannot trigger

i want to load an animate when routechange. why nothing in console. html <body ng-app="app" ng-controller="ctrl"> <a ui-sref="home">home</a> <a ui-sref="route">route</a>...
0
votes
0answers
25 views

UI Routers' states freeze when (quickly) double-clicking link to state, that resolves promise

I need help with this time-dependant bug. I am using UI-router for my angular app routing. BEHAVIOR: When I quickly double-click link to storageState, all child states of homeState (in this example ...
1
vote
2answers
35 views

AngularJS - How to keep the scope variables live even after going to another state and coming back?

I my angular app, I have a list of items shown in one page and on clicking continue button, the app will move to another state. In that page there is a "Back" button which has the code $state.go('...
0
votes
1answer
29 views

Routing issue using ui-router in <a> tag

I have this code and I can't figure out what is wrong. I'm using the data from MySql in loopback. <ul id="main-menu" class="main-menu" ng-class="{'mobile-is-visible': layoutOptions.sidebar....
0
votes
1answer
9 views

Error swtching to another view Ionic 1

Hi I am just new to AngularJS. I want to make my app route from cart view to checkout view when a checkout button is clicked. However I'm really struggling on how to make this supposed to be a simple ...
0
votes
0answers
15 views

Cannot Found URL of Angular Ui-router State Under Apache Webserver

I put my angular1 application in the subfolder of apache web server root. It works fine but every time I refreshed the page after changing ui-router state, apache will return URL not found message. ...
-1
votes
2answers
22 views

http://localhost/admin/ route not working but works with http://localhost/admin/index.html

Hi Everyone I am working on an AngularJS project. My project works fine on a route like: http://localhost/ But I have an admin panel like this: //localhost/admin/ So when I open this it's not ...
0
votes
1answer
19 views

Configure an app's entry point to redirect to different entry points in Angular based on authentication

I have the following logic and I'm curious what's the best way for configuring an Angular app for splitting the entry point based on a user's authentication state. For example, if the user goes to ...
0
votes
2answers
31 views

Await callback request api before start application angular

I need to load some parameters from Api end point before bootstrap application Angular 1. I have a factory that contains my functions for request end point and save in memory. I need to use this ...
0
votes
0answers
9 views

my contact html page is not showing up in my index using ui-view

app.config(function($stateProvider, $urlRouterProvider) { $stateProvider .state('root', { abstract: true, url: '/', views: { '...
1
vote
0answers
45 views

Angular JS UI-Routing with stateparams not working after refresh

Using angular-ui-router with angular for routing in MEAN application angular: 1.6.2, angular-ui-router: 0.4.2 Having following state: .state('myposts', { url: '/your-posts', ...
0
votes
0answers
12 views

Attaching same child states to multiple parent states

I am working on a Front-end web application on Angular JS and using UI-router for routing. Now i have a child state that is same across multiple states. $stateProvider.state('app.user1.viewProfile1',...
1
vote
1answer
40 views

angularjs ui-router - How can I hide the submenu when a specific child-route was hit

I am working on an AngularJS / Ui-router example where I have the following: A state news, with a sub-state music, when clicking on music the news active state is maintained because I have news.music ...
0
votes
2answers
80 views

AngularJS wait for $http request

I have an AnuglarJS app using ui-router and i have a http request that tells information about the user such as login state, access, language, user group, what controllers he can access and so on. It ...
0
votes
4answers
50 views

Controller not calling in AngularJS

I am facing problem in call to controller in child ui state router. URL is changing but controller not call. no console error* Please check code: HTML <a style="cursor: pointer;" class="btn ...
0
votes
0answers
11 views

How to resolve error: Could not resolve 'interaction.details' from state 'interactions'?

URL and page are not changing, when I pass id into UI state provider in angularjs. Here are a few details: HTML <a style="cursor: pointer;" class="btn btn-default btn-xs" ui-sref="int.details({...
0
votes
0answers
16 views

Share ui-router resolve data with Angular component within state template

In my angular app, I have a pretty standard <navbar> component. This component is to be used inside the template on the following state that I've defined using ui-router: $stateProvider ....
-2
votes
0answers
14 views

Get specified states in angularjs

Is there a way to get specified states on a scope variable through the state.get() method ? I want to display different states for each user on the side bar of my application, based on the states he's ...
-1
votes
0answers
21 views

Multiple Nested States (Sub States) on Angular 1.5

On AngularJS 1.5.11 I have one state "auth", and two pages /register and /register/confirm. But I haven't access to /register/confirm template, it's /register template displayed instead of /register/...
1
vote
1answer
30 views

Angular-UI-Router: should i avoid href with ui-router?

Looking through the reference to ui-router (https://github.com/angular-ui/ui-router/wiki/Quick-Reference#ui-sref) the following is said about ui-sref: the directive will automatically generate &...
0
votes
0answers
22 views

How to identify type of web server

I am currently trying to resolve routing issues on my angularjs project. And one of the solutions that I would like to try is to create url rewrite rules as stated here. However, I do not know which ...
0
votes
1answer
23 views

how can use optional url in angular route with ui-router?

I want to define some state with optional url in angular ui-router how can I do this? for example state('test',{ url:'/list/:id/color?/:color?' } in this example the color and :color is ...
0
votes
0answers
17 views

AngularJS with ui-router not run on live server

index.html(Using ui-router) <body ng-app="myApp"> <!-- MAIN CONTENT --> <!-- THIS IS WHERE WE WILL INJECT OUR CONTENT ============================== --> ...
1
vote
1answer
22 views

ui-router child view being multiple named views or unnamed views

How to configure in ui-router a parent/children relationship where siblings coexist in parent page? I can't make child state multiple named views working. This is my parent page:parent.html: <...
0
votes
2answers
47 views

angularjs - passing objects between components

I am working on an AngularJS/Ui-router project. I have two states: state1 state2 (a sub-state of state1) States code: app.config(function($stateProvider){ $stateProvider.state('state1', { ...
-1
votes
1answer
29 views

How to define wildcard matching of url routes with angular ui-router

I want to define any in url whit angular ui-router in angular self router we can define a route like this: $routeProvider.when('/:params*', { template: 'test', }) and when call this url /a/...
0
votes
1answer
15 views

Where to capture the $location.search() vars in the run statement? In order to rebuild the state

Goal / Expected Rebuild the state of the app if the user directly goes to a link like this: http://localhost:8080/app/#!/tag_id=5&ticker=GOOG Results The app currently still redirects back to /...
0
votes
0answers
18 views

lazy load router in angular ui-router after angular is bootstrapped

I use angular ui-router and try to load states after app is bootstrapped this is my config file: var app = angular.module("app", ['ui.router']); app.config(function ($stateProvider, $...