Tagged Questions
0
votes
0answers
31 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
28 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
14 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
19 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
15 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
24 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
29 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
25 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
12 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
16 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
20 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
19 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
31 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
37 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
25 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
52 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
50 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
41 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
30 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
22 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
26 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
43 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
14 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
25 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
15 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
62 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
29 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
24 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
49 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
22 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
26 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
49 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
16 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
26 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
59 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
96 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, ...
0
votes
1answer
41 views
Can i have a controller for each div on a page via stateprovider
I am creating an AngularJs project with the stateProvider and i want to know if it is possible to have a separate controller on a separate div elements, or maybe i am doing something the wrong way.
I ...
0
votes
1answer
42 views
How to make a time input with out am/pm
I want to make an input that will allow users to add time taken. I had hoped to do this using <input type='time"> which is pretty much exactly what I want I just don't want to have the am/pm ...
1
vote
1answer
30 views
How to get fields at $Scope in AngularJS using AngularUI Bootstrap Modal
modalLoginController.js
angular.module('App')
.controller('modalLoginController', function ($modal, $scope, loginService) {
$scope.userName = null;
$scope.userPassword = null;
...
0
votes
1answer
32 views
angularjs module/directive for Syntax Highlighting
I'm looking for a good angularjs module/directive
for Syntax Highlighting (js and a whole html page).
I found
http://ngmodules.org/modules/angular-highlightjs
it's good but it cuts off in ie
...
0
votes
0answers
20 views
Custom CSS on dates in AngularUI Datepicker
I am trying to have an AngularUI datepicker on my page. All is good, but i want to add custom css on certain dates based on results of webservice.
My datepicker looks like this:
<div ...
0
votes
0answers
26 views
Why angular-ui-bootstrap progressbar repaints?
in this site i have a progress bar showing the progress for answering questions.
it uses angular-ui-bootstrap.
when i continue to the second question, the progress bar repaints and you see a ...
2
votes
2answers
29 views
ng-options where selection of one determines options of the other
I have two dropdowns, and I want the second one to have only the options that are relevant to the selected item in the first. I could do some ng-change function but am trying to get it to work with ...
0
votes
1answer
45 views
ng-grid with accordion not resizing correctly
Plunkr here: http://jsfiddle.net/6kp7L/6/
If you add/remove items from the array, the expanded accordion group resizes up and down correctly. However, if you filter the items in the array, using ...