Tagged Questions
1
vote
0answers
14 views
Virtual URL in angularJs with routeProvider
I have a list of items app/#/items, and a form to filter the item by the location that it's located in.
I use dirty checking to trigger a method of a service that communicates with the Backend and ...
0
votes
1answer
20 views
Updating URL in Angular JS without re-rendering view
I'm building a dashboard system in AngularJS and I'm running into an issue with setting the url via $location.path
In our dashboard, we have a bunch of widgets. Each shows a larger maximized view ...
0
votes
1answer
37 views
Angularjs, remove # from url in IE
I have following problem. On client side I have angular routing, something like that:
...
$locationProvider.html5Mode(true);
$routeProvider.
when('/item/:item_id', { reloadOnSearch: ...
0
votes
1answer
36 views
Removing # Character cause app doesn't work correctly in agular
i used index.html for master of my page and i have partial views with ng-view and $routeProvider. after i remove # character from the url (with html5mode) my app doesn't work with url ( except for ...
0
votes
1answer
22 views
Custom state-enter and state-exit code with routing
I have a fairly simple Angular project which routes to a couple different URLs in the JavaScript:
function RootController($scope) {};
function PageOneController($scope) {};
...
1
vote
0answers
16 views
Cancel route and redirect to other route without displaying the original content in AngularJS
I want to check an http services to see if a user is authenticated and if it has permission to see the certain page (controller) in AngularJS 1.2.0rc1.
I have this scenario:
User A wants to visit ...
0
votes
2answers
111 views
AngularJS and nodeJs Express: routes and refresh
My app is "working" fine, but, when I press F5 in browser my problem appears.
My app is organized this way:
nodeJs + express, in Express :
app.use(express.static('public'));
app.use( app.router );
...
0
votes
0answers
32 views
$state does not transition to defined state in unit test
I have service that uses $state. I am trying to unit test the service.
I see that $state.current does not change after call of $state.transitionTo.
I checked $stateProvider, it contains states.
...
2
votes
1answer
27 views
Inject routes dynamicall in angularjs
I'm using angular to dynamically create another angular app. I was wondering if there is a way to inject routes dynamically. Something like
angular.module('app').controller('CreateCtrl', function ...
0
votes
1answer
38 views
How to define route in Sinatra for AngularJS html5Mode
Here is my code in Sinatra:
get '/' do
@title = 'AngularJS html5Mode: true'
haml :main
end
And AngularJS:
angular.module('myApp', ['ngResource']).config(function($routeProvider, ...
0
votes
1answer
50 views
AngularJS Route breaks on manual refresh
In the config method, I have some routes defined as follows:
$locationProvider.html5Mode(true);
$routeProvider.when('/', {
...
});
$routeProvider.when('/front', {
...
});
...
3
votes
3answers
72 views
Why is AngularJS duplicating the query string in my route?
I am using hash-based navigation in my AngularJS app rooted at /.
If a user navigates to my app like this:
http://example.com/?foo
A moment after the page loads, something (possibly Angular) is ...
0
votes
1answer
20 views
.config .run and 2 x config, where to put changeroute .. appctrl, config, run or what?
I wanted to find out the different to .config and .run functions in angularjs. I was using my .config for setting up routes of course but i did have some $on for watching route change starts and ...
1
vote
3answers
122 views
AngularJS (Restangular): Making a promise block? Need to use it for validating a token
I have stumbled upon Restangular for making calls to a rest service. It works great and returns a promise. I need to be able to have the call block. The reason for this is on a fresh page reload I am ...
0
votes
1answer
26 views
What is the singnificance of the forward slash in Angular.js url?
I saw here in the Angular js documentation that
A path should always begin with forward slash (/); the $location.path() setter will add the forward slash if it is missing.
This is so different from ...