I'm using Angular 1.6 and ui-router 1.0.0-rc.1. I set up a couple of simple states: .config(function($stateProvider) { $stateProvider.state({ name: "foo", url: "/foo", template: "<foo-widget layout='row'/>" }); $statePr
In my angular sample route , I am trying to do : (function(angular){ 'use strict'; angular .module('appRouter',['ui.router']) .controller('routerCtrl',function(myResolveServ,resolveData){ console.log(resolveData); }) .service('myResolveServ',function
I need to get the GET params from url and pass it in the links to view in angular I got from location.url() => "/?x=1&b=2" but I need to get = > "?x=1&b=2" without slash I tried to do that like the following: var str = $l
I've a tricky issue that I was not able to solve in a while. Essentially, when I'm on a certain $route and I do a certain $state.go(routeName, params);, I need to append a certain parameter or multiple parameters to the url. Also, paying attention to
I'm trying to get the device id getUUID at the time of app login along with username and password. Is the right way to get device id and post it to the server for login. controller.js .controller('LoginCtrl', function($scope, $http,$rootScope,$window
I a have a question for you guys. I am using Angular 2, set up with Angular-CLI, with the UiRouter (ui-router-ng2). All of which are fantastic, and I am making progress. But, I've run into a problem, that I'm sure is easily resolvable, I just don't k
I use bootstrap popover in custom angularJs directive . i will show error message when $scope.buytypeButton= {type:false} button should disabled and show error message in popover . but i want when $scope.buytypeButton= {type:true} button should activ
I have tried to implement angular js $state.go() with parameter. But the $state.go() works fine without parameter. But with parameter it didn't works. I already tried many examples but no way. I need to display the parameter in html view. my state pr
I'm in an app that uses angular-route and I'm trying to integrate ui-router into a particular module. In this module, I have not included angular-route. The ui-sref urls will all generate fine, but when a user tries to navigate to the view, it kicks
How can I unit test different views for the below scenario .state('app.sr.product.upload', { name: 'upload', url: '/upload', data: { tags: [], userCommunities: [] }, views: { "
[email protected]": { templateUrl: 'views/upload/upload.html
I have this state definition: .state("workPlan.list", { url: "MainPage", templateUrl: "app/workPlan/templates/workPlanList.tmpl.html", controller: "workPlanListController", controllerAs: "list", resolve: {
I have the following state. .state('categories', { url: '/categories', templateUrl: 'categories', controller: 'CategoriesController', }) And template url loads: <div> <a ui-sref="categories.bob">my link text</a> </div> Bu
I have implemented an application where I display a list of results then I allow to the user to select the rows to compare and show some extra data about them. I'm using angular ui route and I have 2 views and 2 controllers one for each, so what I'm
I'm adding a title to every state in the ui-router like that: .state('projects', { url: '/', templateUrl: 'projects/projects.html', ncyBreadcrumb: { label: 'Projects' }, data : {title: 'Projects'} }) And then the title attribute takes that data: <tit
I have three states: one abstract state and two concrete states inheriting from the abstract one. I am transitioning from one state to another and I noticed that the variables that were in the $scope in one state are no longer in $scope after I have
totally newbie on angularjs and ui-routes! trying to get a basic ui-router to work with express, but no success until now. trying to make two routes. /admin /admin/dashboard created the following files: index.html <!DOCTYPE html> <html lang="
I'm trying to add a resolve to my $state in my routing following this guide here. Going a bit further than the guide by adding parameters to the function things stop working. my code looks like this 'use strict'; angular.module('academiaUnitateApp')
I have an issue where almost all URLs parts are optional but the controller is the same. I have a URL with dynamic url-parts which depends from filter when user select some filter parameters URL changes for example: /search, /search/min-1000, /search
I am looking for a solution to call a function inside a controller. How could i achieve this. State .state('confirm.registration', { url: "/confirm/registration", controller:'userController', onEnter:'confirmregistration()', permissions:{} }) Co
I am having trouble accommodating a header in my app. the class="has-header" is apparently outdated an I need help finding an alternative. Thanks. Feel free to correct anything else as well. index.html: <!DOCTYPE html> <html> <hea
This is a common issue, I see it a ton but nothing seems to work. Here is what I'm doing. I want to have some dynamic animations with my states, so basically login will do some cool animations and move into the actual interface. Now, I started nestin
I have began learning AngularJS and decided to go with Angular-UI-Router for all of my routing needs, but unfortunately, I am unable to get the templateURL property of the $stateProvider to render. I have followed tutorials to the world's end, and ca
I'm using angular-ui-router and have an issue with empty a tags, like href='#'. I'm using bootstrap, which makes extensive use of href='#' for dropdowns and such. The problem is if a user selects a dropdown item then the router interprets that as a s
I'm creating a CMS system so I want the states to be dynamically created. Since you can't make http requests within the config phase I decided to add my routes in the .run() function as described here: http://blog.brunoscopelliti.com/how-to-defer-rou
I am currently in a situation where I have to provide support for IE9, for an AngularJS app, while keeping hashtags out of my links (Links sent out from emails etc. whatever angular does client side, doesn't matter). I've got to a point, where almost
I wanted to be able to change the address' URL without changing the state, as to prevent rerendering. From my search, ui-router currently does not provide this, but $location.path from anuglar does. So, naturally, I wanted to use $state.get(stateName
I have several screens in my application that contain nested views. I have found it easier to make modal dialog boxes and panels that slide in and out to be actual nested states with actual urls rather than be some arbitrary javascript magic embedded
I am using ui-router to represent states in my AngularJS app. In it I'd like to change the state without changing the URL (basically a "detail view" is updated but this should not affect the URL). I use <a ui-sref="item.detail({id: item.
For the life of me, I cannot figure out why this home page loads at the bottom. Is this an angular ui-router, angular, javascript or CSS issue? I've been stuck on this for two hours and not knowing why my html page loads at the bottom instead of the
I am trying to create a "Todo App" with angularjs ui-router. It has 2 columns: Column 1: list of Todos Column 2: Todo details or Todo edit form In the Edit and Create controller after saving the Todo I would like to reload the list to show the a