Tagged Questions
2
votes
1answer
22 views
How to check for the existence of a module without an error being raised?
In Angular 1.2, ngRoute is a separate module so you can use other community routers like ui.router instead.
I'm writing an open-source module that aims to work for multiple different router ...
0
votes
1answer
13 views
Google bar chart won't show up inside ng-view html partials
Given the code below which I copy-pasted from Google Charts, (I've just removed the html, head and body tags). This code performs really well if I simply add it inside my index.html page, the bar ...
0
votes
2answers
20 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
45 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
26 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
24 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
18 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
38 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
41 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
61 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
54 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
39 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
55 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 ...