Tagged Questions
0
votes
1answer
35 views
ngController method called twice
I've got an angularjs app with a nav bar inside my index.html page like that :
<div class="navbar navbar-inverse navbar-fixed-top" ng-controller="NavCtrl">
<div ...
1
vote
0answers
34 views
Using grunt server, how can I redirect all requests to root url?
I am building my first Angular.js application and I'm using Yeoman.
Yeoman uses Grunt to allow you to run a node.js connect server with the command 'grunt server'.
I'm running my angular ...
1
vote
1answer
40 views
AngularJS Controller $scope not displaying variable
I am new to AngularJs.
In app.js I have the following
angular.module('module1', ['module2'])
.config(function($routeProvider) {
$routeProvider
.when('/',
{
...
0
votes
2answers
45 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
37 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
73 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
24 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
31 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
287 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
33 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
41 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
49 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
45 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
2answers
158 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
54 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 ...