Questions tagged [state.go]
15 questions
3
votes
2 answers
How do I prevent AngularJS routing from encoding a url parameter with a ~ (tilde)
Currently when I pass a param to $state.go that includes a ~ it duplicates when the url is being created.
Example:
I search for ~abc. Then pass to $state.go('.', {myParam: "~abc"}). Then inside url I have…

Roscoe
- 169
- 3
- 15
2
votes
0 answers
AngularJS : Cannot read property 'runner' of undefined
Summary :
I am having a critical issue in my Angular application. I am using
AngularJS v1.4.7
angular-animate
angular-ui-router
I am getting an error in console:
TypeError: Cannot read property 'runner' of undefined'
Screenshot :
Way to produce…

Debug Diva
- 26,058
- 13
- 70
- 123
1
vote
2 answers
Angularjs: How to use $state.go() for redirect on views of the same state?
On the $stateProvider of my app, I define all of the app's states:
+ function () {
"use strict";
function cataneiConfig($stateProvider, $urlRouterProvider, $httpProvider) {
$stateProvider
.state('login', {
url: '/login',
…

Dr oscar
- 359
- 1
- 4
- 16
1
vote
2 answers
AngularJS $state.go is not redirecting to other page
Below is my controller code,
app.controller('logoutCtrl', ['$scope', '$http','$window','$state',
function ($scope, $http,$window,$state) {
$scope.logout = function() {
console.log('inside logmeout');
delete…

Raghav
- 1,139
- 4
- 15
- 35
1
vote
1 answer
Angularjs ui-router with nested views is loading parent controller for grandchildren
I'm using $state.go("titulos", params) to load the titulos page, in which case the parent controller (emissao) is not loaded again. But when I call the grandchildren $state.go("titulos.fluxos", params) the parent controller (titulos) is loaded…

evbell
- 97
- 1
- 7
1
vote
2 answers
how to use state.go in ionic?
I'm developing an app and after the login the should redirects the user from the login page to the homepage, I'm doing the login through an API file on the server (in this moment the localhost) with http.post method and if the login is correct the…

Edoardo
- 599
- 2
- 9
- 26
0
votes
0 answers
lluminate\Database\QueryException SQLSTATE[42S22]: Column not found
lluminate\Database\QueryException
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'return_purchases.purchase_id' in 'on clause' (SQL: select sum(return_purchases.grand_total) as aggregate from purchases inner join return_purchases on…
0
votes
1 answer
Angular reload window then go to a new state
Background
I have a large angular app with many forms for many items.
I have lists of action objects.
These actions have schemaforms.
These actions form's dropdown's differ from one action to the next. (the dropdown's contents depends on which…

Rorschach
- 3,684
- 7
- 33
- 77
0
votes
2 answers
ionic $state.go not loading page or showing error
I'm using $state.go() other places in my app but it's not working in a simple function and I can't work out why. It's not showing an error or showing the right state called in $state.go().
I've tested it with $stateChangeStart, $stateChangeError,…

David
- 65
- 1
- 7
0
votes
0 answers
Passing parameter to another view from same controller not working (ionic and angular js)
I have a view products, that is populated with data from the controller ProductsCtrl. When one of these products is clicked, the id is passed to a function in the controller.
Inside this function, another function in the ProductsService is called,…

Lazarus Rising
- 2,597
- 7
- 33
- 58
0
votes
1 answer
getting error to pass parameter through $state.go
I am new in angular js. I got some issue to work with $state.go. I have a text field and a button in my HeaderController. In this button I have called a function in ng-click.I want to clear an array on this button click and want to go to…

user1490238
- 261
- 3
- 11
0
votes
1 answer
angularjs - $state.go change url but not load html page
I'm practicing routing in angularJS and facing a problem. I looked online and tried many ways but that doesn't solve my problem. Can you help me?
I'm having problem with the $state.go function. It changes the url, but the html file is not loaded. I…

Nina
- 21
- 11
0
votes
2 answers
$state.go not working in Internet explorer
I am using angular.js for small app. in signup page after user user fill the data and click on submit button one method is called from controller that make API call and then redirect user on next page. this is working fine in Chrome, Firefox and…

Dr Magneto
- 981
- 1
- 8
- 18
0
votes
0 answers
Can't change state with $state.go() neither $location.path() from controller - Ionic
I'm new to Ionic and AngularJS and can't figure out why this does'nt work, i just want to check when on "Home" tab if the user has already entered its card number, if not, redirect him to the appropriate page
Here's my controller:…

Infitek
- 21
- 2
0
votes
0 answers
Angular ui-router doesnt resolve and work properly
While using ui-router i tried for resolve , is there any accesstoken in localstorage , if so proceed to state 'home' else state 'login'. But the program doesnt run as desired, if there is no accesstoken and i hit url for my view page, it shows blank…