Tagged Questions
0
votes
2answers
17 views
server-side changes for $locationProvider.html5Mode(true);
server code:
app.get('/', function(req, res){
console.log('executed "/"')
res.render('home');
});
app.get('/partials/:name', function (req, res) {
console.log('executed partials:name');
...
0
votes
1answer
44 views
How to get rid of `/#/` in url when using Angularjs?
using ng-view and
myApp.config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/', {
templateUrl: '/partials/home',
controller: 'homePage'
}).
...
0
votes
1answer
24 views
AngularJS route without slash
in AngularJS can I set up a style route like this:
http://www.mydomain.com/title-and-more-irrelevant-text-123456-category.html
where '123546' is an indentifier ?
with:
...
0
votes
1answer
23 views
IIS URL rewrite module with angularJS does not work
I have a single page webapp where any request that begins with request for e.g. http://localhost/appname/request* , the home page is sent back to the client using IIS URL rewrite module.
When Angular ...
1
vote
1answer
17 views
Force AngularJS to reload a route although option reloadOnSearch is set to false
In the route configuration of my AngularJS application most of the routes are defined with the option reloadOnSearch set to false as most of the time a page should not reload when search parameter ...
0
votes
1answer
21 views
Does AngularJS have required route segments?
I've got routing that looks like this:
.when "/:locale",
templateUrl: "/views/index.html"
...
.otherwise redirectTo: "/en"
The issue is that the first route also matches /. Is there a way to add ...
0
votes
1answer
37 views
getting data via $.ajax how can i do it the “angular” way. Does $http replace $.ajax
here is my code.
.state("dynamic", {
url: "/:name",
controller : 'AppHomeCtrl',
templateUrl: function (params){
var myURL = params.name + '.html';
...
0
votes
1answer
38 views
AngularJs routing issue
I have some problem with angularjs routing. My goal is to append different view depending on the path. I want to implement this using different ng-apps in one html document like this:
<body>
...
0
votes
1answer
27 views
AngularJS and IE9 page refresh issue
My single page angularjs application seems to work fine in IE9+ until you edit an object and reload the page. If you modify a field (change Name from "You" to "Me") then press save the server gets the ...
3
votes
2answers
56 views
AngularJS change route without pushing a history state
I'm working on an AngularJS app that has a catch all route (eg, .when('/:slug', {...)) which is necessary to support legacy url formats from a previous (non-angular) version of the app. The controller ...
0
votes
1answer
53 views
AngularJS - Adding class to $routeProvider placeholder links
A follow up to the answer provided here: AngularJS - Changing a query param term within $routeProvider?
When using route params, is it possible to set an 'active' class to the element or it's parent ...
0
votes
2answers
36 views
Angularjs routing issue, controller not loading
I have 4 files:
index.html
logic.js
controller.js
homepage.html
index.html
<html ng-app="sample">
<head>
<script src="angular.js"></script>
</head>
<body>
...
0
votes
1answer
54 views
angularjs - After changing views using routing the jquery elements doesn`t get rendered
My issue is that after changing views using routing, the jquery components in my page doesn´t get rendered. I have customized ui components like dropdowns that are not being processed. I saw this ...
2
votes
1answer
35 views
prevent re initialization of controller on $location.path()
I am working on a application where I have to insert a back navigation link to main page from details page. Controller for both views are different. I am using $location.path('/') to navigate back to ...
0
votes
1answer
22 views
Route provider cannot access controllers definitions
I am trying to learn the route features of angularJS, but what I have happened so far doesn't work.
If I ever click Load, Display, or Play (in my example: the links to possible action urls)
then ...