Tagged Questions
0
votes
1answer
16 views
ui-router: open modal on $stateChangeEvent
Some states in my app require further authentication. Eg a Edit state should prompt the user to enter a one time password.
I would be nice to solve this horizontally: attach metadata to the states ...
0
votes
0answers
32 views
unable to open a modal with angular and ui.routes
I am trying to follow this example to show a bootstrap modal on a certain state. It works fine without a modal (so the state config should be ok). All needed dependencies (ie angular bootstrap) should ...
0
votes
1answer
108 views
Angularjs navigation menu with UI-Bootstrap tabs and UI-Router
In this Plunker, I'm unable to make menu links and tabs to work properly.
As you can see I need to click twice the 'Route 1' to go back from tabs Route2, moreover when I click twice the 'Route 2' menu ...
0
votes
0answers
50 views
Nested Views inside a modal not showing up. (ui-router and ui-bootstrap)
I'm having trouble creating a modal that responds to the application state.
From angular ui-router wiki I saw how to achieve my goal but my code is not working and I'm not figuring out why for the ...
0
votes
0answers
66 views
Angular UI-Router pass resolve to child onEnter
I'm trying to pass a previously-resolved result from a parent to a modal instance that is instantiated onEnter, however the controller reports that it's an unknown provider:
Error: [$injector:unpr] ...
0
votes
2answers
90 views
angular-ui-router and angular-ui-bootstrap tabs: content being loaded into DOM multiple times
I'm using angular-ui-bootstrap tabs and angular-ui-router. I want to load specific states into the tab-pane when a tab is clicked. This is working fine. The problem is that the state is being loaded ...
0
votes
1answer
63 views
AngularJS UI Router shared nested routes/states
I'm looking to share a child state between multiple states.
For example I have a shopping site.
Lets say I have the following
.com/random
.com/browse
.com/browse/product/:productID
...
0
votes
1answer
153 views
Angularjs-ui-router:resolve in parent does not fire from children
In my angularjs app ,i have angular-ui-bootstrap tabs and on selection of tabs i change to different state using $state.go and with state transistion url on browser changes.
I have parent static tab ...
2
votes
1answer
321 views
Tabs in angularjs not working properly with UI-Router and UI-bootstrap
I'm using a MEAN.js boilerplate, you can find the entire code here.
I tried to add 2 new tabs to the page rendered after one of the articles have been selected from the list.
For this task I decided ...
0
votes
1answer
76 views
ui.router and ui.bootstrap datepicker
If I use a ui.bootstrap datepicker in a ui.router state, i can open the datepicker only one time. You can see the problem in the following link:
<!DOCTYPE html>
<html ng-app="myapp">
...
0
votes
1answer
97 views
AngularUI Router: pass url params to 'abstract' state while calling child state
I want to access the url parameter($stateParam) inside a abstract state while calling a child state. I am curious to know how that can be done. Code in plunker also
$stateProvider
...
1
vote
2answers
90 views
Hide Parent's sbling ui-view quadrant when in a child state
When I go to a child state, I want to hide a ui-view component of a quadrant ui-view in root state. How can achieve this.
##index.html
<div ui-view="a">
</div>
<div ui-view="b">
...
0
votes
0answers
48 views
Same modal from different states
I'd like to achieve that
when a modal dialog pops up then the background will be the last active page.
I'd like to organize my code around states, so I would prefer those kind of solutions which use ...
0
votes
0answers
172 views
Angular UI Router redirect when using child states with tabs
I'm using ui-router with angular and having trouble routing back to the parent view when using ui-bootstrap tabs.
The navigation is at the top of the app is using for example www.appname.com/route ...
0
votes
1answer
38 views
$state changes but the view don't - AngularJS
I have this config for my states:
$stateProvider
.state('login', {
url: '/login',
templateUrl: 'scripts/login/login.tpl.html',
controller: 'LoginController',
...
0
votes
0answers
75 views
ui-router issue of state not assign properly it works after refresh
I have used ui-router in my app.
Explaination of Issue: from init controller i have open bootstrap modal as form and after form saved its takes id of row inserted and redirect using $location.path ...
1
vote
1answer
2k views
How to change the URL when paging using UI Router?
I have an Angular JS project using Angular UI-Router which is going great but I am trying to implement the UI Bootstrap pagination directive and can't work out the correct strategy.
I have a table of ...
6
votes
2answers
4k views
Doubly nested views : UI-Router or UI-Bootstrap tabs / accordion?
I am a total Angular (and JS) nebwie (with plenty of other s/w development experience, however).
I want to develop something like this:
(with apologies to @PhillipKregg for borrowing his excellent ...
4
votes
2answers
3k views
Angular ui-bootstrap tabs not rendering ui-view
I am upgrading an existing angular app to all the latest versions of angular (v1.2.13), ui-router (v0.2.8), and ui-bootstrap (v0.10.0).
I have nested views that have multiple named views. One of the ...
2
votes
2answers
5k views
opening a modal in a route in AngularJS with angular-ui-bootstrap
I am trying to do what was essentially answered here Unable to open bootstrap modal window as a route
Yet my solution just will not work. I get an error
Error: [$injector:unpr] Unknown provider: ...
0
votes
0answers
82 views
ui-router: how to avoid a view re-invoking itself
I have multiple sibling-views at the root level like so:
<div>
<div ui-view="carousel"></div>
<div ui-view="home"></div>
...
</div>
I've rigged a carousel ...
1
vote
1answer
621 views
Closing a modal automatically on navigation (when clicking an anchor)
I'm using angular-ui modal in my webapp. one of models display many links (anchor elements) that navigate to various parts of the app. the modal can be closed as usual with modal.dismiss() or ...
1
vote
2answers
9k views
How to get angular ui-router's ui-sref to work, when inside a directive's template?
Basically, I am trying to change/customize the behaviour of the ui.bootstrap.accordion. All is working, except for integration with ui-router.
Here's the way I want to use the accordion:
...