0
votes
0answers
17 views

angularjs: route redirection

I have been using ui-router $stateProvider state manager for my application but I haven't defined any routes using $routeProvider. Now, I would like my urls to be rewritten this way: ...
2
votes
3answers
35 views

Simple Angular $routeProvider resolve test. What is wrong with this code?

I have created a simple Angular JS $routeProvider resolve test application. It gives the following error: Error: Unknown provider: dataProvider <- data I would appreciate it if someone could ...
0
votes
1answer
18 views

Changing sort order of ng-repeat changes routeParams.id

If I leave the sort order unchanged, using routeParams.id to pull the correct object from my scope.data object works like a charm. As soon as the order changes, the routeParams.id changes and doesn't ...
0
votes
1answer
32 views

Issue when page reload

My problem is simple, i am on a page of my app, and when i hit reload / refresh button in the browser, instead of load the same page, it fallback to /home, the strange thing is that at the first ...
0
votes
1answer
39 views

How can we add a template to a div in angularjs

i am stuck in some concepts of backbone which i try to implement in angular js . in backbonejs we can add a template (html page) to a particular div tag and we can render that div itself. is ...
0
votes
0answers
32 views

Back to previous page with browser back button, OK - back with plain JavaScript, Not OK

In my website I have a products page and when you click on a product, it goes to the details of the product. The link of the product page is: ...
1
vote
1answer
66 views

angularjs ui-router location path not recognizing the forward slahes

I'm using angular ui router / stateProvider. However I set up my url any parts after the second forward slash is ignored and it always sends to this state: $stateProvider.state('board', { url: ...
0
votes
1answer
30 views

Angularjs - ng-view inside ng-repeat

I have a list of Products. For each one, I have buttons to show the details and comments about it inside this ng-view. The user must to see in one pege the details about all products available, for ...
0
votes
1answer
50 views

Multiple Controllers, only ng-view affected

I have a page which uses two controllers, SearchController and ProductController, that are both part of one app. They both sit on the main page, and are called using ng-controller. I have a route set ...
1
vote
1answer
56 views

angularjs Directive not reacting to attribute change

I have a chat directive that I use to place a chatroom in on the page. mod.directive('chat', function () { return { templateUrl: '/chat', replace: true, scope: { chatID:'@chat', ...
1
vote
1answer
36 views

AngularJs - ui-route Get previous state

Is there a way to get the previous state of the current state? For example I would like to know what was the previous state before current state B(where previous state would have been state A). I am ...
0
votes
1answer
52 views

AngularJS: how to preventDefault() of an event after promise completes?

I have some code like this: $scope.$on("$locationChangeStart", function(event, newPath, oldPath) { // Do some sync checks if (!$scope.isPageAllowed($location.path())) { // ...
0
votes
1answer
36 views

Redirect when app is initialized in angularjs

On first page load when app gets initialized I want to redirect the user to login page. I think the relevant part of the code is this $rootScope.$on("$routeChangeStart", function (event, next, ...
0
votes
2answers
90 views

Angular.JS unsuccessfully tries to load a view with the OPTIONS HTTP method

I have been following along with the AngularJS Fundamentals In 60-ish Minutes tutorial http://www.youtube.com/watch?v=i9MHigUZKEM I was doing fine until I got 52 minutes in when the tutor tests ...
7
votes
1answer
4k views

Opposite of $routeChangeSuccess in AngularJS

I was just wondering if there is a way to know if someone is changing the route of the URL. As an example, I have something like this in my html: <a ng-href="#/somewhere">To ...

1 2 3 4
15 30 50 per page