Tagged Questions
0
votes
0answers
28 views
Ok to use element.addClass in angular?
Loving using angular but want to keep to the "best practices" and not get into bad habits.
Currently making a desktop application which is also available on mobile devices and found the bindonce ...
0
votes
1answer
21 views
“ui-sref” does not refresh the “ui-view”(its controller does not rerun) when a link is clicked twice
When a state is clicked at first, the div that owns the "ui-view" attribute is replaced with the "template" of that state. However, when I click the same state again, its controller does not reloaded. ...
0
votes
0answers
13 views
AngularJS ng-grid Expor to excel sheet not just CSV
Hi I am working with an AngularJS webapp where I display data using an ng-grid and a bar chart. I am trying to find a way to export the tabular data and a PNG/PDF version of the bat char to an excel ...
0
votes
0answers
22 views
nvd3, angularjs, using angularjs-snap for vertical slider with dropdowns, lists
I am creating charts using nvd3. The data for the charts depends on the customer id which I need to select from a dropdown. Similarly, in future I would like to have carrier list, city drop down, etc. ...
-1
votes
2answers
28 views
Non-Modal/Modeless Dialogs in AngularJS without using jquery-ui
I am trying to create non-modal dialogs in my AngularJS app.
The app uses Bootstrap as well.
I am trying to create a draggable dialog, which remains active while the rest of the background can be ...
-1
votes
1answer
45 views
Query not working for me
I am using angularJs ng-resource.I have tried this
angular.module('app.services', ['ngResource'])
.factory('AngularIssues', function($resource){
return $resource('../test.json',{},{
...
0
votes
1answer
21 views
AngularJS UI modal seems to have the wrong scope, show up one extra time each click
I'm a bit of a newb on AngularJS so bare with me. The issue I have is that when I create a modal, with a dynamic message that is fetched from the server (not sure this is relevant), the modal opens ...
0
votes
0answers
32 views
dropdown not working with ng-repeat
I am trying to create a menu using ui bootstrap and ng-repeat, however I seem to have an issue with expanding/ collapsing the dropdowns. If I don't use ng-repeat the dropdowns behave like they should, ...
0
votes
2answers
53 views
how to store and retrieve data in anguar js?
can you please tell me how to store data permantly (example local storage)and retrieve data .I want to store data so that I get again .I am doing client side programing ? I google it it say there is ...
0
votes
2answers
42 views
AngularJS - ng-repeat show one item at a time
looking for some ideas here. i have a meal plan object that contains an array of meals. only one meal can be set as primary at a time but i want the user to be able to cycle through the array of meals ...
0
votes
1answer
15 views
Compile custom directive before ui-bootstrap directive
I'm trying to create my own directive for a datepicker so when the page is opened on a mobile device the input type change to type="date" and the native datepicker gets displayed instead of the ...
0
votes
1answer
23 views
Angular.js return scope property from modal
In this Angular.js directive, I'm trying to return ng-model="commentBox" back to the controller inside of modalInstance.result.then(function(result) {} but I don't seem to be nailing it with resolve ...
0
votes
1answer
20 views
Accessing the state of AngularUI tab from within the elements it contains
I've used AngularUI to build Bootstrap-themed tabs:
<tabset>
<tab>
<tab-heading>Javascript <span class="badge">{{ count }}</span></tab-heading>
...
0
votes
1answer
25 views
Putting a “resolve” on an angular-ui-router view isn't working - the page simply doesn't render
$stateProvider
.state('root', {
url: '',
views: {
'root.base': { templateUrl: '/templates/root/root.html' },
'root.sidebar': {
templateUrl: '/templates/root/root-sidebar.html',
...
0
votes
2answers
48 views
how to make ng-model value set by ui-select value
I am currently using angular-ui/ui-select in my project. I am able to bind the value of the ui-select to an object without issue, however it is binding the entire item that is being iterated over. I ...
1
vote
0answers
29 views
Angular ui-router to accomplish a conditional view
I am asking a similar question to this question: UI Router conditional ui views?, but my situation is a little more complex and I cannot seem to get the provided answer to work.
Basically, I have a ...
-2
votes
0answers
15 views
Angular Checkbox with n-Change - “this”?
I have a series of checkboxes:
<input type="checkbox" ng-change="??????">
I need to set $scope.mode.someOtherValue = false if the checkbox is true.
Is there a way to get the value of the ...
-1
votes
0answers
17 views
Angular.js Directive- $scope data not showing in angular - ui modal
I have one problem with this angular.js directive:
The view is not updating with the scope data. However,
there are no errors in the console. When this scope data was in the
controller, ...
0
votes
1answer
26 views
AngularJS with Angular-UI datepicker & timepicker - formatted model
I'm using ng-repeat to cycle through my returned fields. Every field can have few types, e.g. TextField, NumericField, also DateTimeField.
So I'm looking which type it is and showing that needed ...
0
votes
1answer
21 views
resolves in angular-ui modal get mixed up
I have a very weird problem and as I can't really copy the actual production code here or at least not much of it, you probably can't help me, but I'll try nevertheless.
Here is a simplified example ...
0
votes
1answer
33 views
How to efficiently architect the AngularUI ui-router state machine?
I am very new to the new AngularUI ui-router library that allows us to create nested views using a state machine configuration service and am trying to figure out the best way to architect my states. ...
1
vote
1answer
43 views
UI Router fails to update URL in address bar after successful state change
I'm building a small Angular app and I'm currently using ui-router.
I've hit a problem which looks awfully like a bug in ui-router but I can't be sure as I'm not that familiar with this library. When ...
0
votes
1answer
35 views
Angular ui-select2 - hide initial drawing/rendering of component
I'm evaluating using Angular with ui-select2 and wondered whether someone could provide help on hiding the flicker/conversion of the <select> into the select2 component.
It's only very brief, ...
0
votes
3answers
28 views
Pass resolved objects into controllers defined by a string in angular-ui router
I have a set of objects that get resolved using
:resolve
I also have a controller that I define by passing it the name as a string but I need to pass in the resolved objects to it.
I know it ...
0
votes
2answers
57 views
How do I allow for clicking on each item/post, then viewing it in a new screen?
Im trying to build a simple tutorial app list of grocery items, and then clicking on it will lead to a new page showing the grocery goods in details, such as price, quantity left etc.
Currently, ...
0
votes
3answers
57 views
Angular UI Router - Default Parameter
Is there anyway to specify a default parameter for every route using the Angular UI Router?
My app is entered through the context of another application by selecting a user and then navigating to ...
0
votes
2answers
47 views
Get stateParams on change without reload
I'm making an app using the angular ui router.
When navigating to a particular state, which always has parameters passed to it, I need to be able to change the url and update the parameters without ...
0
votes
1answer
36 views
How to add angular directive to full calendar event
I'm using Angular-UI Calendar (angular version of Arshaw's fullcalendar) and on EventRender I would like to add a Angular-UI-bootstrap popover to the event element.
I have tried these (using ...
1
vote
1answer
25 views
angularjs ui-router default child state and ui-sref
I have the following states in my ui-router state provider:
$urlRouterProvider.when('/parent', '/parent/child');
$stateProvider.state('parent', {
url: "/parent",
abstract: true
});
...
1
vote
1answer
21 views
Why is my factory getting an injector error?
I can't seem to figure out why I can't load my AuthFactory factory in my controller. The syntax looks correct to me. Also note, the portalAPI factory is built out the same way as the AuthFactory, ...
1
vote
2answers
27 views
Using AngularJS Resolve in order to fetch API data before DOM is rendered
I am continuing to have issues where my templates and directives are throwing errors because they are trying to be $compiled before the data is actually set. This is because it takes time for the API ...
2
votes
3answers
45 views
Angular JS Date format inside Ng-Repeat
Actual Date coming from JSON
Need to format it as below .
Effective Date : 2010-08-31 (trim the time stamp)
End Date : 2010-08-31 (trim the time stamp)
Am using the below code for Formatting the ...
0
votes
0answers
15 views
How to create/edit graphs using a jquery/angular UI element
I am working on a project using Orchestrate.IO, a document-oriented database. I have a collection of documents called Products and Categories. Categories are use graph to map product and visa versa. ...
1
vote
0answers
19 views
Angularjs ui bootstrap - Don't know how to cycle through table data with Pagination
I currently have a page that has clickable data. When clicked, a modal comes up that has a table built with customer data received from a service. I have included Angularjs ui boostrap plugin and ...
0
votes
1answer
26 views
Basic Angular Test with Jasmine
I'm new to AngularJS (I'm a Rails dev) and I'm trying to test a simple Angular controller that's using angular-ui-calendar. The calendar works but I want to at least have some test coverage here. I ...
0
votes
1answer
16 views
ui-sref not working approperly
I have a very basic angularjs app, using ui-router. The stateProvider is defined as follows:
$stateProvider
.state 'home',
url: '/'
.state 'products',
abstract: true
url: ...
0
votes
2answers
71 views
AnguralUI Calendar initialising issue: TypeError: Cannot read property 'length' of undefined
I'm trying to implement angular-ui calendar. I installed all the needed dependencies with bower, included scripts in following way:
<script type="text/javascript" ...
-1
votes
1answer
21 views
Still unable to include angular ui utils
Hi i need to use the 'keypress' event from the angular ui utils library. But, I am unable to include angular ui in my project. I have already tried this- How to integrate AngularUI to AngularJS?
...
0
votes
1answer
31 views
AngularUI Boostrap typeahead doesn't select when item is clicked
I am new to Angular and having issues with the AngularUI bootstrap toolkit where clicking on an item in the dropdown, doesn't fill the textbox with the full value. The dropdown box disappears when ...
-1
votes
0answers
12 views
Google map does not appear on hosted site but is ok locally
I am currently using the angular ui maps to add to one of pages on my site.
Basically the map is displaying fine on my local machine but when i deploy to my linux server hosted by Rackspace the map ...
0
votes
0answers
30 views
Angular UI Router Regex State Matching
I've an infinite level accordion with a url structure like:
http:localhost/#/list
http:localhost/#/list/section-1/
http:localhost/#/list/section-1/content-bla
When /list/section-1/ is accessed I ...
0
votes
2answers
51 views
Is there a more elegant hide/show pattern in angular?
So I have a crowded screen that is incorporating many ng-hide/ ng-show directives. YEAH! So the common patter is:
<div . . ng-hide="showCurveForm" ng-click="toggleCurveForm()">
...
2
votes
3answers
23 views
Do you have to us ng-Controller in the view or can you just declare it in the $routeProvider?
I recently realized I had not used ng-Controller to declare the official scope of my controller in the HTML but had only mentioned it in $routeProvider and all APPEARS to be well.
Does any one know ...
0
votes
0answers
27 views
Multiple data entities in field for ngGrid
Is it possible to put multiple fields in 1 cell for ngGrid? e.g.
columnDefs: [
{field:'last_name, first_name', displayName: 'Name'}
]
0
votes
4answers
51 views
How do I get $index from an ng-repeat table to a modal controller?
I have a table of customer records created with angularjs bootstrap-ui and uses ng-repeat.
At the end of each line in the table is a button to get more information about the customer.
When the ...
1
vote
0answers
30 views
getting an error : Argument 'ctrl' not defined in angular js
my index.html file has the following :
<script src="scripts/controllers/form/DashboardCtrl.js" />
<script src="scripts/controllers/chart/morrisChartCtrl.js" />
my app.js file is as ...
0
votes
1answer
18 views
Vertical alignment of Raphael canvas broken in Twitter bootstrap tab
I just filed a bug for Twitter bootstrap tab element.
I am asking here to see if somebody has ideas for a workaround until this bug is fixed.
The problem:
The layout in the tabs seems to behave ...
0
votes
2answers
27 views
angular error in declaring multiple modules
I m new to Angular JS (apologies if my my terminology is incorrect or not enough explained).
I m trying to do a demo creating multiple modules which are just returning messages. My domo has just 2 ...
8
votes
1answer
60 views
Manually Update Angular-UI UI-Sortable Items
Essentially, I would like users to be able to drag and drop an item or click up/down arrows to move an item in the list.
Is there a good way to update the items' indexes that plays nice with ...
0
votes
2answers
99 views
Insert/Remove templates/views on button click in angularjs
When programming in ASP.NET MVC I became accustomed to using partial views for CRUD operations. And now that I'm working with Spring + AngularJS I was hoping I could work in a similar way. So far, ...