Tagged Questions
UI-Router evolves the concept of an AngularJS Route into a more general concept of a State for managing complex application UI states. Most notably, it allows nested state/view hierarchies and multiple named views.
0
votes
1answer
18 views
how to add drop down on header using grid (not input field)?
I am trying to use Ui-grid from this link
http://ui-grid.info/docs/#/tutorial/101_intro.
I make a simple example of ui-grid in plunker..I need to add select box on "Gender" as filter .If I select ...
2
votes
0answers
14 views
Does RequireJS loads previously loaded files (.Js or .html) from cache?
I am using requireJs in my app. I face a scenario and I want to clear it out.
I'm loading the particular template (views) and their dependent js files based on location url or routes. See Following ...
0
votes
2answers
24 views
how to change the header text of table in angular?
I am trying to learn Ui-grid from this link
http://ui-grid.info/docs/#/tutorial/101_intro.
I make a simple example of ui-grid in plunker..Actually the table header takes first object property name ...
0
votes
0answers
13 views
angular js browser forward button - redirect to different state
In the application login page calls APIs which sends user's email/phone to provide security code (user can choose where to send one time code). The problem is if user presses browser back button then ...
1
vote
1answer
11 views
Debugging angular ui-router under ionic
I am pretty new to Angularjs and Ionic and I am trying to warp my head around the status based routing. The biggest hurdle is that it seems to difficult to drill in without a decent way to debug ...
1
vote
0answers
16 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 ...
1
vote
1answer
11 views
Angularjs-ui-router not showing contents of template in browser
i am new Angular and trying to get a working example setup for Angular UI router
I researched some questions on stackoverflow but dont see the issue specifically. My Issue is that even though in ...
0
votes
1answer
20 views
Why selected object is not display in console when it is clicked
I am using this demo: https://github.com/ezraroi/ngJsTree
API reference: https://www.jstree.com/api/#/
I made two examples
First I have a checkbox. When I select any checkbox, it show the ...
0
votes
2answers
16 views
Ui-Router navbar options not refreshing after login/logout
I've defined a navbar using angular and ui-bootstrap. There are several nav options which are rendered based on a login state:
If a user or admin is logged in, there should be a Logout option in ...
1
vote
2answers
17 views
Pass object through ui-router to controller
I'm creating a user profile page using angular/rails. I've set up a StateProvider using ui-router, like so,
$stateProvider
.state('friendprofile', {
url: '/{name}',
views: {
...
1
vote
1answer
22 views
How use two ui-view independents
I have an application where I wish that two panels (ui-view) work singly.
https://jsbin.com/neroze/edit?js,output
But, when I click in link to change the right panel, the center panel is changed and ...
0
votes
1answer
21 views
why image is not display in angular js?
I make a simple demo of jstree using angular js .I read this documentation
https://github.com/ezraroi/ngJsTree before making the example
Both codepen have same JS Code .But one code pen show ...
1
vote
1answer
21 views
ui-router automatically routes to parent controller
I have an angular app with ui router with a nested view (in the config method):
$stateProvider
.state('home', {
url: '/home',
views: {
'mainView' : {
templateUrl: ...
1
vote
2answers
16 views
AngularJs ui-router reload template
I have a angularjs project that's using ui-router for routing.
I am using $state.reload() to reload the current state and it works just fine except that in my development system i want the ...
0
votes
1answer
43 views
why the controller not working in angiular js?
I am trying to implement jstree in angular .I used this plugin
https://github.com/ezraroi/ngJsTree
I am getting this error
b.tree.jstree is not a function
I follow all steps and make a codepen but ...
0
votes
3answers
26 views
How to use AngularJS ui-router to build same URL as <ui-sref> in controller instead of HTML?
I'm using AngularJS's ui-router in my webapp. I have a state that looks like this:
$stateProvider.state('mystate',
{
url: '/mystate/{id:int}/:slug',
params: {
slug: {value: ...
0
votes
0answers
57 views
Adding ng-app to ASP.NET 5 MVC 6 page “breaks”
The short and skinny: I have an app that I am working on and I would love to use angular. Problem is, when I add ng-app="app" to the html tag on my _Layout page, it breaks my Login page (which is the ...
0
votes
1answer
27 views
AngularJS - Need To Change States Automatically On Timer Delay
I am quite new to AngularJS and have my web application using the $stateProvider to change to various states when required.
However, I am trying to find a way where I can loop through a number of ...
0
votes
2answers
28 views
How to make AngularJS UI-router take, but ignore optional trailing backslash in URL?
I'm using AngularJS's UI-router to do routing.
Currently, I have this:
$stateProvider.state('mystate',
{
url: '/mystate/{id:int}/:slug/',
params: {
slug: {value: null, ...
0
votes
0answers
13 views
Calling parent controller from onEnter
I'm trying to familiarize myself with Angular and ui-router in particular. Is it possible to call some function in the parent controller, from the onEnter function inside a $stateProvider?
I hope ...
0
votes
1answer
33 views
How to use AngularJS UI-router capture this URL with an optional parameter?
I'm using AngularJD ui-router to capture my URL and send two parameters from that URL to my controller. Here are my requirements:
The first parameter is a mandatory integer (id)
The second parameter ...
0
votes
0answers
54 views
angular-ui-router always redirects to $urlRouterProvider.otherwise
In my Angular SPA application, when type the address into the address bar or click on ui-sref link, I am always redirected to the $urlRouterProvider.otherwise. My Code is given below:
...
0
votes
1answer
30 views
AngularJS ui-view not receiving scope
I want to simply show a sidebar with ng-if when isCreating === true. The ng-click event is from a nmNav directive which is bound to the same controller as the state – NotesController.
But it seems ...
0
votes
1answer
26 views
What is the right way to setup urls.py for django-rest-framework + angular-route + static files?
I understand the concept of what I want to do (there is a rather nice question here: Django, REST and Angular Routes)
Django has a route for DRF, Admin, and needs at least one more, for the angular ...
0
votes
1answer
15 views
AngularJS UI router: Block view
Right now i am making an AngularJS+UI router install application. But i have a problem, the problem is, that i want to disable access to the views, associated with the install application. I want to ...
0
votes
0answers
22 views
url naming issue in angularjs
I am trying to pass a parameter through states by $stateProvider and having a display issue. The parameter I try to pass is something like "foo/bar/zoo", which means it contains / character.
In the ...
0
votes
1answer
16 views
UI-router abstract state with no url
A way to define an abstract state using the UI-Router is as follows:
.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/blog/home');
$stateProvider
// ...
0
votes
1answer
23 views
Set AngularJS app configuration from a service
My app starts with login page as the first view, where user is supposed to enter username and password. Based on the username, properties of the user if fetched from database using databaseServive. I ...
0
votes
1answer
23 views
Angular UI-Router Multiple Menu (Top Horizontal and Left Vertical Menu)
I have top level menu, and then I have left menus, which will be refreshed based on the selected top level menu. I am able to create that link, but as soon as I select the left menu, it goes blank as ...
1
vote
1answer
34 views
Setting AngularJS app configurations after a service has been called
I am using $urlRouterProvider service in my app.config to define the default routes in my AngularJS application. I define it as follows:
app.config(function ($stateProvider, $urlRouterProvider) {
...
0
votes
2answers
15 views
One ui-sref link working, the rest don't
I've got a page where I three links on an Angular template. The first link works, the second two don't. The first link shows the cursor as a pointer, the second two show the cursor as auto/default. ...
0
votes
1answer
23 views
Changing Angular UI router app root from “#” to something else
When I implement angular UI router in my app, my view URL appears as :
www.example.com/serverpath#/UIRouterPath1
www.example.com/serverpath#/UIRouterPath2
Now I want to change to something like
...
0
votes
1answer
17 views
How do I redirect mydomain.com to mydomain.com/#/ using nginx?
I am using Angular Ui-Router in my web app. Right now I have to use mydomain.com/#/ to access this. How do I redirect users from mydomain.com to mydomain.com/#/ in nginx ?
0
votes
0answers
29 views
42 mins to 2016 to cover 1 line of code
I can't menage to code coverage this $state changing service:
($state) ->
@$inject = ["$state"]
-> $state.go "home.about"
This is my test wich fails last 2 expects
mock = require "mock"
...
1
vote
1answer
21 views
Angular ui-router hide based on roles
I'm using Angularjs with ui-router to navigate within my web app. I'm using Web Api as my backend. I used a tutorial from Taiseer Joudeh to implement authentication and authorization. now that part ...
6
votes
2answers
67 views
why splice not work properly in angular js
I am trying to make one demo in which i have one checkbox list .I am able to display the list using ng-repeat .
What I need if user click on one check box(only one checkbox is checked) .it display ...
0
votes
1answer
29 views
AngularJS/UI-Router: How do I use one controller with multiple named views?
I have a child state that fills up named views in the parent state (header, content). They both share the same data, however, and I don't want make a redundant second controller but seems like that's ...
0
votes
1answer
15 views
Assigning separate controller files in Angular's UI Router
I am new to Angular and Angular's UI Router. I have a basic index.html file in which I inject the views. And then I have app.js with the routes inside, a template client.html and a controller about ...
0
votes
1answer
8 views
Pushing data from Angular Bootstrap Typeahead into another tab using UI-Router
I have 3 tabs: customers, billing, and method. On the first tab I have the Bootstrap Typeahead, that is connected to a json file of customers. The second tab is a detailed view of the customer account ...
1
vote
1answer
17 views
Multiple Views in one Tab
Here is a simple example of what I'm trying to do.
I have 2 tabs (Home and News) and 3 views (Home, News and Details).
When I click on the Home and News tabs, it displays respectively the Home and ...
1
vote
0answers
24 views
Angular UI-Router
I am new to Angular.js and was trying to create a link that displays a form when clicked on, but it doesn't seem to work.
this my index.html
<!DOCTYPE>
<html ng-app="MyApp">
...
0
votes
0answers
18 views
AngularJS, UIRouter – Transclude HTML into ui-view
I wanted to pass some HTML into an ui-view, much like you would do with a normal directive. However, I can't seem to understand if ui-view supports it or not. I'm doing this, currently:
<div ...
1
vote
2answers
26 views
confirm email address using Angularjs
The backend has created user and needs the email to be confirmed and it has sent out an to the address (see below)
Please confirm your account by clicking
after clicking on the link the user goes ...
0
votes
0answers
15 views
Mean JS : Multiple view - Can not access route
I am trying to create a MEAN app where i have two users one administrator and other one is customer. I am facing some trouble in accessing the routes inside the admin/index.ejs. First of all i will ...
1
vote
1answer
27 views
TypeScript Build Error : Property does not exist on type 'IStateParamsService'
I am using TypeScript almost entire of my client project. Currently I am facing a technical problem.
In my HTML, I have an anchor tag like below :
<a class="btn btn-default mrm" ...
0
votes
1answer
18 views
How to enable event default in anchor click in Angular ui-router
Basically I'm asking this gentleman's question: How to disable static url in angular ui-router?
My DOM structure looks like this:
<div ui-view>
<a ...
0
votes
2answers
31 views
ui-sref not generating the href
I'm not sure what is the mistake I'm doing here but the href is not generating. I have configured as per ui-router example but when I put the ui-sref in the ng-repeat its not generating the URL and ...
1
vote
1answer
16 views
Using resolved data in subsequent call
I am learning how to use resolve in ui-router. So far I have this in my state (which is a parent state):
resolve: {
currentApp: function(appService) {
return appService.retrieve();
...
2
votes
2answers
55 views
Angular ui.router default header footer
When it comes to ui.router modules I can think of three different ways to set a default header and footer for every view:
DEFAULT HEADER
<CONTENT>
DEFAULT FOOTER
1. ng-include - attaching ...
1
vote
1answer
18 views
$urlProvider not resolvable in controller
I can inject $urlProvider in module.config() but when i try to do it in module.controller() I am getting this error:
Unknown provider: $urlRouterProviderProvider <- $urlRouterProvider <- MyCtrl
...