0
votes
0answers
12 views

How to separate menu into different view in AngularJS ui-router application?

I have this: <!-- Fixed navbar --> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button ...
0
votes
0answers
18 views

Angular ui-router doesnt resolve and work properly

While using ui-router i tried for resolve , is there any accesstoken in localstorage , if so proceed to state 'home' else state 'login'. But the program doesnt run as desired, if there is no ...
1
vote
1answer
37 views

AngularJS ui.router won't load template

I'm still learning AngularJS and having trouble with UI Router. It just won't load the template. Here's my code: <body class="top-navigation" ng-app="mixcontainer"> <div id="wrapper"&...
0
votes
2answers
38 views

Resolve a function and use its side effect to record data in a service

I am making a web page with ui-router. Before we enter the controller, I want some operations to be done: 1) create a temporary folder in the server and write some files; 2) record the name of the ...
2
votes
1answer
32 views

How to swap views in angularJS?

I am trying to create an angular application. When the index.html page is loaded 2 links login and register are displayed. When either login or register is clicked the entire view is replaced by the ...
1
vote
0answers
17 views

Structuring an angular app for server side filtering and pagination

tl;dr What would be best approach for structuring an angular app which supports filtering and sorting on the server side using radio button filters on client side Context of the app: I have a sample ...
0
votes
0answers
28 views

AngularJS ui-router : i have send param to $state.go() to nested state and nothing happened

I have a state like this .state('topic.content', { url: '/:id', resolve: { topicContent: ($stateParams, TopicService) => { return TopicService.getContent({ topicId: $...
0
votes
1answer
13 views

parent template also displaying on child state. how to get rid off this issue?

I am using angular ui router 0.2.15 and there is one page /profile and now want to edit the profile on click of button and url become /profile/edit. Now I was bit confused between named views and ...
0
votes
1answer
28 views

I am trying to make a simple shopping cart but im struck at adding products to cart?

I'm new to angular ,I'm trying to develop a simple shopping cart, I have just created list of products but I'm not getting how I would add them to cart? here is my plunker link:https://plnkr.co/edit/...
0
votes
0answers
16 views

On subpage I want a new routing system using Angular-UI-Router

Trying UI-Router - this is not a SPA - but multiple pages with collection of SPA built in as subpages I want a user to navigate to the user to http://domain/comp. This is a subpage with essentially ...
0
votes
0answers
14 views

Is there anyway to detect ui-router routing of angularjs in express routing

I am new to both angular and node. I am working on a project which has social sharing but due to angular issues it was not happening correctly. So I found a solution to reroute the url when facebook ...
0
votes
3answers
50 views

Why ng-class is not applied as per the current state of ui router?

My application has two different views (page1 and page2), which has been configured with ui-router's stateProvider. I want to apply a css on the body based on what page I am looking at. If I am ...
1
vote
0answers
58 views
+100

Make a web page with a folder of external files

Previously, I used $sce.trustAsHtml(aString) to inject a string (eg, <html>...</html>) to a template <div ng-bind-html="content"></div> to display a graph when loading a ...
0
votes
0answers
18 views

Redirect in UI-Router $stateChangeStart

We have an enrollment system where users cannot move to the next step (a UI-router state) unless they complete the current step. i.e. a user cannot move to "Email Verification" (step 2 on enrollment) ...
-1
votes
1answer
18 views

Angular 1.x and ui-router in laravel how to deal with big app?

I have a web app which is made with Angular 1.5, ui-router and I'm using Gulp to build it. The angular app is loaded inside a Laravel framework. My application is growing and is becoming bigger and ...
0
votes
0answers
17 views

Can I use nested components linked with same app module? Is it good practise? Using component Router

Here is component structure of my application. Any advice will be valuable. Root component is app. Which has two components as child : login & home. home has two child components : dummy-...
0
votes
2answers
18 views

How to open a angularJS modal when the url has a queryString

I want to develop a web site. I want to open a $uiModal when the url has a querystring. If the query string is not there then no modal is oepn. The code is: myApp.controller('jobObjectiveController', ...
0
votes
0answers
19 views

ui-router display raw code in my ui-views when the page is accessed

This is my first time using ui-router and I find difficulties in handling routing and reloading some states. I hope anyone can help me with this. overview of my index.html <html ng-app="resApp"&...
0
votes
1answer
16 views

migrate from ngRoute to ui.router $rootScope.$on '$stateChangeStart' not triggering

I am trying to create a authentication system. I stubled upon this (plunk) tutorial which is great but uses ngRoute and i wish to stwitch to ui.router. After some hard time trying to do it by myself, ...
0
votes
1answer
38 views

I can't navigate to state ui router from address bar

I have a problem navigating to a state from the address bar or when i refresh the current state. i have the following code: Controller: $scope.selectCategory = function(category) { $location....
0
votes
1answer
20 views

Angular 1.6 ES6 No-error no app

How explaine this ? Notice: use ui-router I think is the probleme. $stateProvider .state('login',{ url:'/', /*controller:'loginController',*/ controller: function(){alert(...
0
votes
1answer
15 views

How to pass parameters in AngulrJs through $stateProvider?

I want to pass an id parameter from URL to controller. here it is my config file $stateProvider.state('main.edit_tutor', { url : '/home/edit/:id', // here I want to pass Id views:{ ...
0
votes
0answers
18 views

Ionic Framework - Routing inside <ion-side-menu> is not tracked by <ion-nav-view>

As Ionic Framework Doc explain, navigation inside <ion-nav-view> will be tracked so that <ion-nav-buttons> and <ion-nav-buttons> in <ion-nav-bar> will work properly to show if ...
0
votes
0answers
18 views

dynamic stateparams without updating url in app.js

.state('index.menu.generics', { url: '/:section/:subsection/:layout/:json', views: { 'content@': { controller: 'gridCtrl', templateUrl: 'shared/simple-grid/partials/grid....
1
vote
1answer
27 views

Access initial parameter value while navigating with angular-ui-router

The entry point to my application is an URL with an unknown parameter value, e.g.: http://www.host.com/key/25 and my simplified configuration looks like this: $stateProvider.state('home', { ...
0
votes
0answers
25 views

Nested States & Nested View not working in ui router angular js

I have a problem. I use 2 controller in 1 navigation like this thread click button go to answer Thread and Answer different controller. So, I use this in table thread (go to view answer) <...
0
votes
0answers
47 views

angular-ui-router parent template not rendered while child state resolving

I have an app with two states, one a child of the other. The parent state contains a simple template: <div class="container"> <h1>Heading</h1> <loading-spinner ng-if="$ctrl....
0
votes
2answers
35 views

Angular ui route hide modal

How can I close a modal, with ng-click on angular ui route? I have this HTML file with UI route angular: <div ui-view="modalView"></div> <div ui-sref="openModal">Open Modal</...
0
votes
1answer
33 views

ngRoute is not changing view when click of <a> tag

I am new to Angular JS and stuck in an issue...i dont know what is happening.Please help to fix it. I have index file and app.js is connected ,app is using ngRoute...see code below. var app = ...
0
votes
0answers
14 views

Restrict access to all child states angular ui-router?

I'm trying to restrict access to all child states of a state. Currently, I'm using $rootScope.on('$stateChangeStart', function(event, next) { Auth.isLoggedInSync(function(loggedIn, role_type) { ...
0
votes
0answers
47 views

AngularJS - UI Router not working (Cannot GET /state)

I have defined states using the ui-router like this: (function() { 'use strict'; angular.module('test.app').config(['$stateProvider', '$urlRouterProvider', '$locationProvider', function($...
0
votes
0answers
24 views

AngularJS 1.5: Dynamically create states with UI router from mySQL database

Premise I have an SQL database of clients using a webapp I've created in Angularjs. How it currently works is each client has a state within the UI router which I have added manually like so: .state(...
0
votes
0answers
16 views

Page Reload Fail When Using Html5 Mode True in Angular UI Router

I have a problem, I did remove #! in my URL with $locationProvider.html5Mode(true);. I checked my page is good if I switch in another page. But, if I reload my page like http://example-page/thread or ...
0
votes
1answer
33 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
0answers
16 views

Ionic View from ui-sref not working

I am new to Angular and have the below error which I am trying hard to solve. The codepen link can be found here Expected behavior: When I click on the Share button, there should come a new HTML ...
0
votes
2answers
20 views

Trying to pass a ui-sref param dynamically

I amy trying to populate a ui-sref link with a parameter dynamicall: ui-sref="business({id:{{business.busId}}})" But this does not work. Any help would be appreciated!
-1
votes
0answers
49 views

Want to replicate AngularJS tutorial, Why my “new” and “edit” routes are not working on AngularJS (local)?

Can't figure it out, why my "new" and "edit" routes won't work ? Here's are the html files: index.html <input type="text" ng-model="projectList.search" class="search-query" id="projects_search" ...
0
votes
0answers
23 views

Routeprovider and stateprovider together in my Angular 1 app

I am trying to develop an app using Angular 1.4.(Refer below image). I need suggestions on below What is the best way to develop home Page in this. Should I use <ui-view>(UI routing) to ...
0
votes
2answers
32 views

Give URL with ID in Angular UI Router

I have a problem, when I edited data, my url not showing id example : /answer/1 or /answer/2 or /answer/3 etc. Im confused because Im using UI ROUTER I'm a beginner use UI ROUTER angularjs. Can you ...
1
vote
1answer
82 views

Single Page App : Back after login

Need your suggestions. I have angularjs app, using ui.router for routing. The users are first presented with a login screen, on login a grid is shown. The grid is paginated. Now if the user clicks ...
0
votes
0answers
23 views

Angular ui router view is not displaying the output with requirejs and spring

I am trying to create a project with angularjs and requirejs. But when i am trying to run the project, ui-view is not displaying the result instead showing blank page. I saw console output but i don'...
0
votes
1answer
57 views

$state.go is also calling its parent controller

$stateProvider .state("home", { url: "/home", templateUrl: "templates/home.html", controller: "homeCtrl" }) .state("home.abc", { url: "/abc/:id", templateUrl: "templates/abc....
0
votes
0answers
19 views

ui-router how to define multiple views in multiple modules for same state

I devide my application into separate modules. And now i need to make config in each module to define states for ui-router. The issue is i want to show in same state (for instance "index") in ...
0
votes
1answer
17 views

How to fire or execute http service when link is clicked in angular route in single page web app?

Requirement : I want to click on a menu item which is in single page app and by clicking on that link, loads a view employee.html via $routeProvider and the view should load my employee details by the ...
1
vote
1answer
29 views

AngularJS - the purpose of hash in URL [duplicate]

I am using angular 1.5.8 and I have noticed that all of my states (routes) have a hash (# ) after the domain. For example: mydomain.com/#/profile After searching I found results explaining how to ...
0
votes
1answer
46 views

Angular UI-Router: nested views

I have two col layout with header and footer. Header has page navigation (GetStarted, Component). Of the 2 columns, one is for sidenav and other is for main content. When "GetStarted" nav is ...
0
votes
2answers
23 views

AngularJs routes - scroll doesn't change after I go to another state

Simple question. When I scroll down and press any button that goes to a different state ($state.go('other_template')), the second state loads but the scroll continues at the same level where I left it ...
0
votes
1answer
23 views

Clear Angularjs state.go parameters

I am working on angularjs app. Its like CRUD app. Below is the app structure Home (List) => "/#!/" --- Details page => "/#!/home/details/-KcXruMX3ia6rokeZjCJ" ----- Edit page => "...
0
votes
1answer
97 views

Error for angular ui-router transition superseded / transition prevented / transition aborted / transition failed

Im getting the errors: Error: transition superseded at $StateProvider.$get (http://localhost:1337/angular-ui-router/release/angular-ui-router.js:2903:42) Error: transition prevented Error: ...
0
votes
0answers
10 views

Angular / Wordpress base issue

I trying to make one angular app on wordpress. My app works fine when it deploys in root directory, but when i place app in my wordpress theme (wp-content/theme/x_theme) it needs another base ('wp-...