All Questions
360
questions
0
votes
1
answer
21
views
Accept any proceeding characters after specified state URL
I'm using ui-router and one of my states URL can be appended with a dynamic key. So the state looks like this:
.state('reset-password', {
url: '/reset-password/{.*}',
template: require('html-...
0
votes
1
answer
120
views
Data not populating into view
I am using state provider to route ,when i switch between pages sometimes data loads on view sometimes it's not ,though i can successfully get data from my db but it's not population in my view file ...
0
votes
1
answer
34
views
Angular.JS - Managing different states with same url
So here is a much needed requirement i need to implement and i know it should not be this way but this is a requirement i cannot waive off.
So currently i have a webapp of my own which has 3 ...
0
votes
1
answer
179
views
Use UI-router to navigate to fromState
AngularJS UI-router has a useful parameter "fromState" which allows me to store where the user came from when they change state. I am trying to implement a system which takes the user back where they ...
0
votes
0
answers
105
views
After refresh page goes blank (AngularJS state)
When I click on the button located on my home page it goes to the correct page and loads all data correctly. But after that when I refresh the page data not load and show the blank page.
Below show ...
0
votes
3
answers
371
views
can't access $state or $state.current
I want set page titles which change according to route. I mean Responsive titles.
I have a directive in my module:
mainModule.directive("pageTitle", function($state){
return {
restrict: 'A',
...
0
votes
2
answers
129
views
Where and how to initialise application state returned from $http?
I am using session storage to store my application state.
I have an initial state which looks something like this:
appState = {
titles :['Mr', 'Ms', 'Mrs', 'Miss', 'Dr'],
addresses : [],
labels : []...
0
votes
0
answers
41
views
Angularjs - How to reload only child state without reload parent
I'm having trouble with reload a state in angularjs. I only want to reload the child state only but when I call $state.reload(); it also reload the parent state which contain a left menu bar (if it is ...
0
votes
0
answers
29
views
state activation in angularJS
it seems my state gets activated without using $state.go. any idea why?
I have on a home page a template with links like so:
<a href="/abc/example?topic=car1"> volvo</a> <br/>
<...
1
vote
0
answers
73
views
Angularjs UI-Router state change changes functionality of Google-API directive
I am using a google places autocomplete directive: vs-google-autocomplete
which works fine. The problem is, if we change the $state (by back / forward button, or just ui-sref="testroute", or $state....
0
votes
1
answer
151
views
State Error. Angular JS
I have a task to merge to components in state.js in Angular. I am pretty new in this. I had included the code and it is throwing state error which I am unable to understand from where it is coming. I ...
-1
votes
1
answer
41
views
angular 1.5 passes undefined value to a controler after state.Provider "resolve"
I have this code:
app.js
var promptoWeb = angular.module('promptoWeb', ['ngMaterial', 'ngAnimate', 'ngMessages',
'ngAria', 'ui.router', 'ui.sortable', 'ngFileUpload']);
(function (app) {
...
0
votes
4
answers
66
views
Dynamically generated templateUrl using ui-router
I want to create dynamicall generated template url usilng the id of my ng-click id. But I am getting the following error
Uncaught Error: [$injector:modulerr] Failed to instantiate module mean
...
0
votes
4
answers
143
views
Cannot reach html templateUrl in Angular 1.6
I'm creating a simple web application in angular 1.6
I create a state for the url "/" but it seems that angular cannot reach the file don´t know why.
Folder structure is this:
So the html load the ...
1
vote
2
answers
56
views
$state.go ui-routing function ignores custom parameters
I have created a 'go' back option that takes user back to the advSrch screen/state. I pass loadSearchQuery as true if going back.
$scope.back = function() {
$state.go('advSrch', { isDeleted: ...