0
votes
0answers
14 views

Angular JS - fill week data into table

I am having a table with nine columns, first column is task, seven columns for week days and last column is for total. First column will be filled with the some task from database, Week columns will ...
0
votes
2answers
22 views

Notifying angular of change

I'm trying to make angular refresh itself as soon as the data model has changed. I have data store object is a rather complex model but in the end should provide angular with the data it has to render ...
0
votes
2answers
25 views

Recursive call of directive crashing the browser tab

I have an observation directive which render observation.html observation.js angular.module('bahmni.clinical') .directive('observation', function () { var controller = function ($scope) { ...
0
votes
1answer
23 views

AngularJS dynamic Tables and ng-repeat

I am trying to answer my own unanswered question but stuck with some weird results of my code that I can't figure out. When I generate the whole table by entering common heights and floor numbers and ...
1
vote
1answer
21 views

Using value of complex ng-model in controller from template

I have input box inside a loop in HTML : <div ng-repeat="line in list.performance_recommendations"> <label>{{line.template.message}} <input class="k-textbox" ...
0
votes
1answer
42 views

AngularJS - ng-repeat horizontally x number of times, then new line

I am trying to perform a simple ng-repeat on an <li>. In the past, i have created vertical ng-repeat. I am now trying to create a horizontal one, however, one that displays 4 items, then starts ...
0
votes
0answers
15 views

JQuery file not loading on page with ng-repeat

I am building a real estate listings page for a client of mine with ng-repeat from a json data file that holds all his listings data. On each listing I created a 3 field form so I can tap into a ...
0
votes
1answer
24 views

Submit and disable all buttons in an ng-repeat without adding a new property on the scope

I have a list of items where each item is clickable and should trigger the submit(id) function. I would like to disable all items (buttons) when one of them is clicked. <ul> <li ...
0
votes
1answer
22 views

angular getting attribute value and cannot find a proper way

I have this in my dom <div id=“my-lightbox-container" style="height: 0px;”> <div id=“my-lightbox" role="dialog" style="width: 660px; height: 342px;”> <button id=“my-close" ...
0
votes
1answer
34 views

How to reload angularjs scope data without rerendering bound view

I've got a small problem. I have a bootstrap tabset within an angularjs app. The tabs are partially generated from ng-repeat and contain data, that is bound to the scope. Basically, within the ...
1
vote
0answers
15 views

Angular ui-sortable + angular-gridster

I'm trying to combine the functionality of ui-sortable and angular-gridster so that I can pull an item from a list and drop it into a rearrangeable grid. ui-sortable and angular-gridster have the same ...
0
votes
0answers
15 views

Linking to a specific position on one page from a different page based on a json array variable

I am re-developing a clients site using AngularJs and since they list businesses for sale, I've placed all their data in a json file, then populated a page with ng-repeat. Everything works great, but ...
0
votes
1answer
29 views

How do I target just one instance of a nested repeat?

This is probably pretty basic, but I'm going round in circles. I have a nested controller in a ng-repeat - I would like to trigger an event in an instance of the repeat that will affect only the ...
0
votes
1answer
21 views

AngularJS matching filters exactly and not part

<li class="column__list--item" ng-repeat="skill in skills | filter: { skillset_id: filterbySkillset }"> I've noticed that when I try filter using the above, it filters anything it ...
0
votes
1answer
27 views

Directive scope got undefined

I get an issue with passing data to angular directives inside ng-repeat, it always got undefined. Here are my code The Controller: angular.module('module').controller('ModuleController', ['$scope', ...
0
votes
1answer
16 views

Angular record the order of checkboxes as clicked

I am trying to add the functionality in my angular application to record the order of the checkboxes as they are clicked and hence show them in same order as they were clicked. Here is the snippet: ...
0
votes
2answers
49 views

Change scope values in the view

I'm learning AngularJS and I have a question. Here is my code: HTML (view): ... <table> <tr ng-repeat="student in students"> <td ng-class="{'student-highlight' : ...
-1
votes
2answers
30 views

Angular.js - Nested JSON scope with Angular

{ "imports": { "imported": [ { "date": "19/9/2014", "item": [ { "sn": "3366698", "type": "Food", "weight": "10tn." ...
-2
votes
0answers
41 views

Angular JS infinite scroll

I want to create an infinite scroll. I get a Json of 50 posts at a time. I have to break it down and show 10 posts initially. The rest of the posts should be loaded on scroll in batches of 10. I have ...
1
vote
1answer
49 views

$scope not updating my view from controller

I have reached a total block and could really use some insight as to what I might be doing wrong here. I have search bar up top and a view area beneath it to load the different templates. When ...
0
votes
1answer
26 views

Angularjs $watch tree array

I have an tree array like this: Array ( [attributes] => Array ( [attribute_group_id_6] => Array ( [id] => 6 ...
0
votes
2answers
57 views

anuglar js: ng-repeat doesn't displaying anything

I'm not really a js guy but i tried to show something with the ng-repeat in angular. But it doesn't display anything. HTML: <div class="list-block" ng-controller="ContactController as ...
0
votes
0answers
17 views

How to get rid of angularjs object property within ng-repeat only intended to collect input and not to be saved on the server side

<div data-ng-repeat="group in page.Groups" class="group"> <header> <div >{{group.Name}}</div> <div ...
0
votes
1answer
19 views

working with extra nested POJOs trees

Is there anything smart I can do with very complicated POJOs tree in my template? e.g. <div important-attr="{{item.another_sub_item_three.lets_go_a_little_dipper.property}} " ...
0
votes
1answer
33 views

ng-repeat not executing inside scoped directive

Run into an issue where ng-repeat doesn't seem to be executing inside a custom directive. I think the problem is something to do with the transclusion/scope but I'm not really sure. directive: ...
0
votes
0answers
40 views

Update one view from another one in AngularJS

I'm just playing around a little bit with AngularJS and I have a problem filtering from a modal view. I have two modals(lightboxes) Search <textarea name="dwq" id="dwq" autocomplete="false" ...
0
votes
3answers
42 views

Unbinding ng-repeat scope

I have two <tr>s and an ng-repeat on each, but both perform the same operation on their child elements, like so: <tr ng-repeat="item in data : filterFunc" ng-if="mode === 'something'"> ...
1
vote
3answers
65 views

Manipulate array of parent controller from child controller inside ng-repeat loop

I want to manipulate items in an array stored in a parent controller. When I manipulate the items, I want to do this from within an ng-repeat loop inside a child controller. As far as I can tell, ...
0
votes
3answers
29 views

scope variable does not get updated after adding data to it (on view page)

Im building a cart in angular JS. It works like this user clicks on item function addToCart adds it to database then on te page i have a cart wich displays cart contents. So in addToCart method i ...
0
votes
0answers
21 views

Angular js isolate scope issue while using ng-repeat and custom directive.(jquery sorttable+draggable)

I have a draggable item and two sortable lists.This draggable item can be dragged into any of the sortable list. To implement this functionality i have used jquery + angular. The problem is when i ...
0
votes
0answers
18 views

Accessing child object from $scope

I've created a $http call which returns an array of objects. I've bound the array to a property on my $scope and then I'm using a repeater to display all the properties. This works great however one ...
1
vote
1answer
47 views

Scope in directives

I have problem with Directives and Scopes and arrays. What I have read is that if I write a directive where the scope is set to true I get a new scope separated from parent scope. Here you see my two ...
0
votes
1answer
21 views

Include ngShow in select ngOptions

I populate a select using ng-options. In the value it gives a addon_id (from json data) and the name is addon_name. This works using the following code: <div ...
0
votes
1answer
32 views

Angular get dynamic variable from $scope inside ng-repeat

I'm unable to output a variable within my $scope inside an ng-repeat The following variables are defined inside my $scope: error_question1 , error_question2 , error_question3 I have the below ...
0
votes
0answers
24 views

validation with dynamic name in ng-repeat

Im currently having an issue where I want to create multiple form inputs with validation. The form elements I want to create will be up to 100 duplicated fields. To do this I have used ng-repeat as ...
0
votes
0answers
22 views

How to do pagination in tree-grid-directive?

I am using following ‘tree-grid-directive’. https://github.com/khan4019/tree-grid-directive Is there any way to do client/server side pagination in tree-grid-directive? Or Is this support ...
0
votes
0answers
52 views

AngularJS scope data not displaying on partial html

I am facing one weird scenario while using angularJS. [new to AngularJS] I am calling one function from my index.html which is defined in controller.js. <li><a ng-click="casualShirts()" ...
0
votes
2answers
32 views

AngularJS - Calculating length of JSON array

I have a set of JSON data and within it, i am trying to calculate the length of an array (Infos): My JSON: "Association": { "Items": [ { "AssocName": { ...
0
votes
1answer
47 views

Update directive's template on controller's variable change - angularjs

What I'm trying to do is to get a JSON object from a $http request, requested inside a controller, and build a directive that displays the multiple objects in the JSON object in a grid. The problem ...
0
votes
1answer
90 views

Create a list without ngRepeat

I would like to create a directive, that does not need ngRepeat, because there is some additional functionality on the directive, that doesn't play good with ngRrepeat. This is my directive with ...
0
votes
0answers
22 views

Through AngularJs not able to update data in repeater , it updates whole data of Repeater Rows on button click of each row in repeater

Refer Below code:I have list of records in Repeater Control which contains Admin, Patient and customers records. In each row i have a button which gets data based on Admin,Patient and customers Id and ...
0
votes
2answers
57 views

Angularjs - Pagination appear after search filter

I am newbie on AngularJS. Search result can be displayed in one page but why the next and previous button is showing ? http://jsfiddle.net/2ZzZB/1473/ <input type="text" id="txtNotessearch" ...
0
votes
1answer
47 views

Angular directive in ng-repeat. Scope twoway binding

I have directive with isolated scope and two-way data binding. app.directive('inputField', function() { return { restrict: 'E', require: '^ngModel', ...
0
votes
1answer
29 views

ng-repeat scope and dynamic ng-model

Quick questions. Im generating part of a form dynamically, namely the radio buttons part and I am using an ng-repeat. To do this I have the following code to loop through and list the radio button ...
0
votes
1answer
19 views

angularjs object list to collect survey data

I have a list of employee objects (available via REST service) and need to collect their attendance (present, absent, on leave). I tried to create a wrapper list to include employee object and ...
1
vote
1answer
63 views

Images not being loaded in img tag inside an ng-repeat

My problem: I want to display a list of images, stored localy, using ng-repeat directive, but the images re not being displayed. AngularJS version: 1.2.22 The code: Directory Structure: myapp/ ...
1
vote
2answers
55 views

Named view in angular ui-router not updating, despite being watched

I have a scoped variable $scope.foo that I am keeping a watch on. It could be updated through a text field in a form. I have two named views A and B on a page that I am rendering using angular ...
0
votes
3answers
34 views

AngularJS: Reuse markup for editing many properties of an object

I have an object with a lot of properties (all of type number). I want to edit these properties so for every property I have an example markup: <div> propertyA: <input type="number" ...
0
votes
1answer
49 views

loop in loop ngrepeat angular js not working properly

im having some issues with Angular JS looping into data (ng repeat) From php I send a multi assoc array back as json data. it holds resData and ResMenu each object holds data. in my controller i ...
0
votes
2answers
40 views

How to use “OR” in ng-repeat

I have different response in different scopes and I need to check in both the scopes for the values in ng-repeat. For Example: $scope.abc = data; $scope.def = data; <div ng-repeat = result in ...