Tagged Questions
1
vote
2answers
36 views
animate div using angularjs animate
I am using angularJs 1.2+ and angular ui router.
I have a route that contains div. When entering to that route, a div showed up. I would like to add an animation to that div for enter and leave but I ...
0
votes
1answer
28 views
angularjs ui-router: find level of current state
So I'm using ui-router and stateparams to nest child states, and it works well. I'm now trying to find a way to dictate a css class what state level the app is at. main.route1.section1 would be 3 ...
0
votes
1answer
38 views
How to use http-auth-interceptor with directive
I'm using http-auth-interceptor to ask user authentication. I'm also using ui-router to handle the routes of my application. Until now I had a CoreController as a top level controller associated with ...
0
votes
2answers
56 views
Angular redirect to home on refresh
What's the best way to direct a user to the home page if they happen to refresh from any other route (or state if you're using ui-router, as I am).
For example - I want them to begin on the inventory ...
0
votes
1answer
157 views
Alternative approach to ui-router state transition animations
I was given what i thought was a nearly impossible task by my product owner to create some animations between states. I began using ngAnimate and came up with what I thought was a pretty cool solution ...
1
vote
2answers
141 views
Angularjs nested routing and loading multiple pages within a view
I'm setting up an angularjs app that has multiple vertical columns that display on the same page and based on what item is clicked a new or different column will expand.
Here's my jsbin example.
...
2
votes
1answer
564 views
angular ui router directive dynamically ui-sref
HTML
<li class="dropdown signals" signals="signals" data-nb-signals="" style="visibility: hidden;">
<a data-toggle="dropdown" href="#">
<i class="glyphicon ...
0
votes
1answer
71 views
Synchronizing nested views in Angular ui-router
My "root" state includes two views that exist for the entirety of the application:
//index.html
<body ui-view>
<under-pane ui-view = "underpane"></div>
...
1
vote
1answer
138 views
Directives isolated scope not working properly together with nested views? (AngularJS / UI Router)
I'm using ui-router in a AngularJS project where I have a nested view that contains a custom directive.
This directive renders an input field (lets say a filter-field) and its value should be in sync ...
0
votes
0answers
30 views
Access AngularJS module config from directives
I'd like to be able to define ui-router states from markup, using directives. The directive's children would be the template for the state, for example:
<state name="foo" url="bar">
...
0
votes
1answer
122 views
Loading relative templateUrl
I've been trying to find the best way to create a modular, scalable angular application. I really like the structure of projects like angular-boilerplate, angular-app, where all the related files are ...
0
votes
0answers
153 views
AngularJS Tree directive & ui-router change url & dynamic content on tree node click
I have make a simply tree directive by angularJS, here is the plunker link:
http://plnkr.co/edit/6f0vABqkNT3l8lTVR0yd?p=preview
some of the codes:
** Inside the directive, my hg-repeat template ...
0
votes
1answer
73 views
Illegal use of ngTransclude directive with UI Router and angular-wizard
I'm using angular-wizard in a project with UI-router, you can see a demo if you click the "Create" button on the right:
http://plnkr.co/edit/XYUamusHru7eV0nvAD5i?p=preview
The wizard works fine ...
1
vote
3answers
940 views
Trigger state in button tag using ui-sref
What is the elegant way to trigger a state with angular-ui-router by clicking <button>?
I am using ui-sref="main" and it doesn't seem to work although it works with <a> though.
HTML:
...
0
votes
1answer
400 views
ui-view doesn't work when used inside angularjs custom directives
I want to wrap some ui-view elements inside a custom angularjs directive
<wrapper>
<ul>
<li><a ui-sref="route1">Route 1</a></li>
<li><a ...
0
votes
1answer
52 views
Call another directive from the directive with the same attributes and content
I want to override behaviour of one library directive, called "ui-sref". Lets see example:
<a ui-sref="edit" class="btn btn-small">
<i class="icon-pencil"></i> Edit
</a>
...
0
votes
0answers
81 views
Angulajs - creating a directive while using ui-router
I am trying to decipher directives... although I viewed and implemented many AngulaJS simple stack tutorials, I am unable to get it to work while using ui-router, not sure why. Too many attempts have ...
0
votes
2answers
1k views
Angular ui-router's ui-sref created dynamically in a directive?
I am working on a line of business application that is using Angular to create a SPA around a Node.js api server. I decided on using ui-router cause of the state-machine and their intuitive way of ...
11
votes
6answers
6k views
How can I use ng-animate with ui-view rather than ng-view?
I am using angular-ui-router with angularJS v1.2 and would like to implement custom page transitions.
How can I use ng-animate with ui-view (from angular-ui-router) rather than ng-view (which would be ...
1
vote
1answer
442 views
angular-ui-router dynamic menu: TypeError: Cannot call method 'match' of undefined while rendering menu
i am new to angular and angular-ui-router and trying to create a menu.
I tried angular-ui-router and think that it fits for my needs.
now i have a problem while creating the menu with the ui-router ...
4
votes
2answers
570 views
Angular directive not picking up service data
My service NavData
angular.module('navData', []).
factory('NavData', function() {
var navData = {};
navData.depth = 0;
navData.category_id = "";
...
1
vote
2answers
5k 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:
...