The built-in routing object in AngularJS, which can map the browser URL to a defined route.
0
votes
1answer
36 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
39 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
76 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 ...
0
votes
0answers
6 views
Hwo to rplace the one cotroller div by another using Angulerjs
Blockquote
i have two with two ng-controller
Suppose first div contain Login form
Username
Password
{{alertMessage}}
Sign in
...
0
votes
0answers
8 views
How to Replace one div controller to another after condition match Angular.js
i have two with two ng-controller
<div ng-controller="ctr2"></div>
<div ng-controller="ctr1">
<form name="form1" ng-show="login" method="post" action="home.jsp" ...
-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
32 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
314 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
42 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: ...