0
votes
1answer
35 views

How to set a model for a single view in Angular JS?

I've got a controller in Angular JS. In this controller i've got a $scope.users property : it's an array of users. This controller is used by two views: /users and /users/:id. I've seen that the ...
0
votes
0answers
35 views

Share data between controllers using permalinks?

I would like to share data between controllers using permalinks, rather than signals or factories. Given a single page application, with three controllers (Ctrl1, Ctrl2, Ctrl3), and a predefined ...
3
votes
1answer
60 views

Single page app, permalinks and ngView?

This is my current setup, with each column being represented by a controller: <navbar></navbar> [column1] [column2] [column3] <footer></footer> Additionally each column has ...
-2
votes
0answers
22 views

Angularjs params separator

I wanted to use latitude and longitude to single param. which look like, use a comma to separate latitude and longitude www.hello.com/3432,-123/ Is that possible? if not, what is the best way to ...
0
votes
0answers
26 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
127 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
27 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
2answers
38 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
45 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
39 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
117 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
41 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
70 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
67 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
51 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 ...

1 2 3 4
15 30 50 per page