0
votes
1answer
36 views

Spring and Angular JS HTML5 mode with abstract routing

I have a project Using Spring and Angular JS. When I attempt to remove the ungly "/#/", I followed the following tutorial: Configuring HTML 5 mode in my index html file: <base href="/"> in ...
0
votes
1answer
46 views

$locationProvider in angular url

Recently I have developed a website http://www.skduhariya.com, this is completely based on angularJS. I'm using the concept of ui-router for routing between the static pages. Symbol(#) is being ...
0
votes
2answers
59 views

Angular JS page with more than 10 search options

I am new to Angular JS and I am creating a html page where it has more than 12 search options available to the user . Now should I create 12 separate functions to call the REST API to fetch the ...
0
votes
1answer
35 views

ui router issue with Materialize CSS

I am using Materialize CSS with Angular ui.router to handle states and render HTML. But facing issue with Materialize Select as it is not initialized on state change as Materialize components ...
0
votes
1answer
49 views

Load variable in angularJS before before javascript html

I am trying to load a graph in AmCharts. The problem is that the JavaScript script is loaded before I get the service return, it starts empty and I can not update the variable. Any idea how to do ...
2
votes
1answer
160 views

angularjs cordova base href

trying to set the correct base href value for an angularjs html5 web app to work in cordova initially using $locationProvider.html5Mode(true) with <base href="/">: app works perfectly in a ...
1
vote
1answer
65 views

how to highlight nav tab state1 when we are in state3

I have a situation where I need to highlight nav tab state1 when we are in state3 using ui-router concept. State3 is inside the state1 html. Below is my code: <nav> <a ui-sref="state1" ...
0
votes
0answers
103 views

AngularJS HTML5mode Pushstate with ui router

I'm trying to implement html5 pushstate on my application to prevent page loading when going back. However, when I click the back button on my browser, it still re-initiate the controller again. I ...
0
votes
1answer
111 views

UI-Router, I am trying to pass id in the url, but I keep getting nothing

I am trying pass id in the url so that it can be use by other page more specifically the detail page but i keep getting nothing. the url is going to the correct route but the id is not getting passed ...
0
votes
2answers
56 views

videojs doesn't load when change state with ui-router

I am working on a project with videojs that must work on Firefox and IE 11, and is built with a angular-ui-router. One of the states has a video player, and on the first time loading, videojs properly ...
0
votes
1answer
52 views

Invoke Angularjs controller method from Angularjs view which related to another Angularjs controller

I am new to Angularjs, I have created simple web application that takes the details from user and display the details in the view. I am facing problem while invoking a method of one controller from ...
0
votes
1answer
99 views

How to update the URL in the address bar but without reload to that URL?

How to update the URL in the address bar but without reload to that URL? I found 2 solutions : Solution 1: Read here http://stackoverflow.com/a/4059844/2642351 Using window.history....
0
votes
1answer
76 views

AngularJS: Page reload fails when using Angular Ui Router with Html5 mode enabled [duplicate]

I am using Angular UI Router in my angular app and i have enabled HTML5 mode to remove # form my URL's by using $locationProvider in the config. angular.module('myApp', ['ui.router']) .config(...
0
votes
0answers
56 views

Embed angularjs app in another angularjs app

I'm trying to embed my website(that made by Asp.net WebApi , AngularJS) inside my another website(made by Asp.net Mvc & Angularjs) that both website used UI-Router framework for Routing. now how ...
0
votes
2answers
74 views

Angular js : How to load server response in ng-view

I am developing and website in codeigniter and angualrJs. I an trying to load view in ui-view from controller- action of codeigniter using $state route method. But I am not getting any response. Is ...
1
vote
1answer
126 views

Dynamic template Angular UI-Router

i'm trying to load a navbar according to the user. to this, i need to set a dinamyc template, but i can't see my $rootScope $stateProvider /*Login*/ .state('login', { url: '/', ...
1
vote
1answer
146 views

IE vs Firefox Links (hash vs htm5)

On my site i use html5mode history API for angular routing and when it's not supported it goes back to use hash mode. /#/ html5 mode : http://www.main.com/something hash mode (ex IE9) : http://www....
0
votes
1answer
968 views

Receiving a [$injector:modulerr] in console when setting up angular-ui-router

I'm setting up a page using angular.js and am using angular-ui-router and am running into a pretty basic issue which i can't seem to figure out. I have required the proper CDN's and I believe I have ...
2
votes
2answers
77 views

Navigating to a child state refreshes its parent state too

I'll try to provide a sample pseudo-code to be able to explain my issue as detailed as possible. I wouldn't be able to put here a working code because there're too many layers, directives and ...
0
votes
1answer
29 views

UI Router Backbutton causes re-request of all assets in index.html but prefixed with the route html5mode

I am using Angular with UI router and Express. I have set $locationProvider.html5Mode(true); and have <base href="/"> in the <head> of my index.html file. On my server I have a ...
0
votes
0answers
110 views

Angular UI Router HTML5 Mode Typing in Address Bar

After some experimenting with ui-router's html5 mode, the behavior I'm seeing is when a path is typed into the address bar, the entire page refreshes with the expected state. Even if I don't change ...
4
votes
1answer
259 views

angular-ui-router nested named views with typescript

Hi I'm new to typescript with little experience with angular. I've been trying to get a pretty common angular-ui-router setup working with typescript but I just can't figure out what I'm missing. I ...
0
votes
2answers
187 views

How should I create state using $stateProvider according to folder structure in Angular JS

I am using $stateProvider for routing. Here is my folder structure app -css -style.css -js -app.js views -home.html -list.html index.html Here is my state code app.config(function($...
0
votes
1answer
254 views

Angularjs load List.html or Grid.html based on user selection in NavBar

I am using Angularjs UI Layout to support resizable splitter. I need to implement List/Grid View for main html file. Such that based on the user selection of button List or Grid in Nav Bar, i have to ...
0
votes
1answer
64 views

ui-router html5mode not working with extend url or url with params

First, I had this issue, link, and after some reading and some tests I noticed a problem with the url while refreshing the page using ui-router with html5 mode enabled. Problem The problem occurs ...
2
votes
1answer
564 views

AngularJS ui-router html5mode not working on reload

First of all, I've tried a bunch of different solutions to fix this problem, but none of them worked for me. See links below. The problem: Currently I can't use html5mode with ui-router because it ...
0
votes
2answers
93 views

How to use $stateprovider without # in URL?

How to use $stateprovider without # in URL? If we use $locationprovider.html5mode(true) then first time it was loading correctly but after refreshing the page the state is not loading and error is ...
1
vote
0answers
200 views

Working Setup for Gulp, Connect, AngularUI Router and HTML5 Mode

I've tried and search a lot but I could not find any working solution for the following setup: gulp connect (https://github.com/senchalabs/connect) connect-live-reload angularJS angularUI router with ...
0
votes
0answers
39 views

Why is default view not shown?

How do I make localhost:8000 show <p>default</p> under HTML5 mode? While accessing via <a ui-sref="default">a link</a> would always work, I always get empty content no matter ...
0
votes
3answers
295 views

AngularJS routing doesnt work

I'm new to AngularJS and I'm currently building a small application. I want my URL's like this /index (without the .html). I tried to use NgRoute for that, but it doesn't seem to work out well. When i ...
0
votes
1answer
226 views

Issue with enabling html5 mode in angular js to remove # from URL

I searched a lot in stackoverflow and web regarding this and no where I got a straight answer to my question. Hence requesting for help. Here is my problem: I enabled 'html5mode' in my angular js ...
0
votes
0answers
66 views

Refreshing AngularJS stateProvider states

I'm using StateProvider for routing in my website. Changing states from one to the other work, but whenever I refresh the page on any view, I get a 404 not found error (The requested URL /about was ...
1
vote
1answer
885 views

Angularjs ui-router in html5 enabled mode not working

Angularjs version 1.3.14, ui-router version 0.2.15, html5mode enabled. When I try http://localhost/firsttime it redirects to http://localhost as fallback Here is app.js 'use strict'; // Declare ...
0
votes
3answers
406 views

Change location of browser's back button in angular js

I have a wizard with multiple Steps. Let's say something like this: Product > Address > Payment > Verify On the /verify step, the user buys something. If the user now presses the back ...
0
votes
1answer
268 views

Refresh/Reinitialize Home Page - Angular JS

I have a video that plays on my home page and when I navigate to the other pages it no longer shows (which is what I want). But when I click on a link to go back to the home page, I want the video to ...
1
vote
1answer
44 views

Routing without template/controller combo?

I would like to map each route with a function, rather than a controller/template. I have only 1 page, the only items which change on the page are scope variables. I'd prefer avoiding a controller ...
0
votes
1answer
84 views

Angularjs with bootstrap Modal

i am using plain angularjs with bootstrap. i am trying to create page where user lands after login. so as a deafult route "/" the user lands to landing.html landing.html contains <ul class="nav ...
0
votes
1answer
414 views

Is possible to use ui-router to i18n/localize my app?

First of all, ui-router is really a huge improvement on any AngularJS app that pretends to be flexible and well structured. Thank you for your effort! In an application that I'm working on, we need ...
0
votes
2answers
3k views

Angular-UI-Router with Html5Mode refresh page issue

I have an app that uses angular-ui-router with html5mode(true). Everything seems to work fine when running and routing to other states. My default state is app/calendar which is set during module.run(...
0
votes
0answers
206 views

“Double vision” with HTML5mode, Angular with ui router and Express

I am an absolute noob, so bear with me. I am developing an app with angular and express. I am using ui.router for the angular routing and express to serve the pages. I've used the following lines to ...
12
votes
5answers
9k views

Page reload fails when using Angular Ui Router with Html5 mode enabled

I am using Angular UI Router in my angular app and i have enabled HTML5 mode to remove the # form the URL by using $locationProvider in the config. var app = angular.module('openIDC', ['ui.router']); ...
2
votes
1answer
3k views

Using ui-router for “main” layout?

I'm trying to create the 'main layout' for my page using ui-router views, but I can't seem to get it working right (various errors, controllers not getting called, templates not getting loaded). <!...
0
votes
1answer
287 views

When using ui-router normal href which point to element id don't work

I'm modifying our web to use ui-router for state change which works good. We have few href that points to the element id and they fail to work instead it routes to /. How to avoid it and have our ...
0
votes
1answer
93 views

Angular html5 mode with fallback

I'm working on an angular application that has been around for a while. So far I've used the normal # mode, without any prefix. The application has quite some content so some of the customers might ...
1
vote
1answer
281 views

send the ID to the HTTP request

I have to send the ID of a client to the modify.html page from the clients.html page when I clic on the Modify link,this is what I have done: clients.html: <tbody> <tr ng-repeat="...
1
vote
1answer
677 views

HTML5 Mode AngularJS ui.router

Hi I want to use html5 mode. My file structure is as the following: mypage.de/mysub I can only mess around in mysub. So far, I added into my index.html: <base href="/mysub/"> And created a ...
3
votes
2answers
790 views

AngularJS Can't inject resolved object on Controller

In my code I have a state and a sub-state .state('tab.tab1', { url: '/tab1', views: { 'tab-tab1': { templateUrl: 'templates/tab-tab1.html', controller: 'tab1Ctrl' } } }) ....
1
vote
1answer
245 views

Angular - UI Router - HTML5 Mode - WebForms

I have a WebForms project and try to improve it with the AngularJS. I've configured UI-Router on one of my pages and multi-view is currently working as it's intended to. Later on I've tried to exclude ...
11
votes
3answers
5k views

Configure Amazon S3 static site with Angular JS ui.router html5Mode(true) on page refresh

How can I configure an Amazon S3 static webpage to properly route Angular ui.router html5Mode routes? On page refresh, it will make a request for a file that doesn't exist, and angular can't handle it....
1
vote
2answers
522 views

Prevent angularjs ui-router from routing

I have a layout for my application that displays the user's name in the top right corner or the page. When clicked, a drop down appears with options to navigate to settings, sign out, profile, etc. ...