0
votes
1answer
16 views

How do I set multiple unique charts in their own DIVs using an AngularJS directive and Highcharts

First, a HUGE thank you to anyone who can help me figure out how to get this working! I am creating a dashboard which shows several main containers. Inside these containers are smaller ones with ...
1
vote
1answer
31 views

I need to put a space inside ng-true-value=“fa-li ” Angularjs

The plunker shows my list working the way I want. but I am unable to put a space between my list items. It would be ideal if ng-true-value="fa-li " read that space but it doesnt. I thought about ...
0
votes
1answer
28 views

avoid DOM manipulation using jQuery in ng-repeat

I am new to angular and working on a simple CRUD application. I understand that I must avoid DOM manipulation using jQuery if I can. I am displaying data on the page after I get data from server ...
0
votes
2answers
32 views

ng-repeat on two arrays

I want to do a ng-repeat on an array which is composed of two arrays, like this : [titles: [], links: []] My arrays (titles and links) have the same length What i want to print in my ng-repeat, ...
0
votes
0answers
23 views

Adding nested ng-form's within a table using ng-repeat

I'm building a dynamic table with ng-repeat where each row is a record in my database. Some of these fields are allowed to be editable and I find out which ones are through my ...
0
votes
2answers
34 views

AngularJS creating dummy directive

I want to create in AngularJS a "dummy" element to make nested ng-repeats. So that following data.test = [{h:1, d:[11,12]}, {h:2, d:[21,22]}]; ---------------------- <dummy ng-repeat="a in ...
0
votes
2answers
55 views

angularjs ng-repeat after render

I am using AngularJS with ng-repeat directive. I really need to know if there is a way to bind events like 'ng-repeat-before-render' and 'ng-repeat-after-render'. I need that for several reasons, one ...
0
votes
0answers
49 views

ng-repeat using scope function return value not calling function

I'm having a bit of a trouble using the return value of a function as the array to iterate over in ng-repeat in a custom directive. The code is rather simple: .directive('treeRow', [function () { ...
0
votes
0answers
38 views

Add content to transcluded content in angular directive

I'm trying to add content to the transcluded html inside my directive. While it works visually, the console is giving me an error and I don't know how to fix it. Here's a plunkr showing the issue: ...
0
votes
1answer
37 views

Access ng-repeat $index inside directive link function to access item in collection

I've run into a wall and none of the documentation is helping thus far. I'm trying to create a directive that replaces an element with an iframe pointed to an external resource and each item in my ...
0
votes
1answer
41 views

AngularJS make ng-repeat generic

I want to make one directive using ng-repeat, where I have two use cases. In one use case, I want to print the object for each repeat (person). In the other, I want to print a property of the person ...
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 ...
2
votes
2answers
104 views

Jarvis.widget doesn't get rendered in AngularJS ng-repeat

I have a hard time figuring out what to do in my AngularJs single-page . I use ng-repeat to display a number of widgets. The plugin is "Jarvis widget" ...
1
vote
0answers
51 views

Please explain why angular ng-repeater decrease render performance as the number of rows increases

I have been observing the decrease in render performance of angular ng-repeater as number of rows increases Here is my experiment. http://jsbin.com/quyofifa/1/edit?html,js,console,output When you ...
0
votes
0answers
17 views

Angular JS $http service within a directive

I am trying to create a implementation of the Facebook popover for my application.I have come across a directive for creating dynamic popovers.I want my application users to be able to hover over ...
0
votes
2answers
35 views

Angular ng-repeat filter on subarray

Using Angular, I'm trying to filter using ng-repeat on FactorName given the following schema. Filtering using <... ng-model="query.Factors.FactorName" ...> doesn't work (not surprisingly). I ...
0
votes
1answer
26 views

AngularJS - Displaying Date Data For Items Only In The Last Five Years

I have a $scope.myData object that contains a list of addresses and dates that i've own/rented, eg: Example of my data From Date 2011 To Date current From Date 2010 To Date 2011 From Date 2009 To ...
0
votes
2answers
34 views

AngularJS Dynamic Filter Configuration fail to resolve

I'm a newbie to AngularJS with some fair knowledge with KnockoutJS also. I'm trying to implement a search feature on 'products' in my ViewModel that is configurable by the end user by combining.. ...
0
votes
1answer
24 views

I have create a custom directive (dynamic form template), which is create by a object. I am not able to get form data in my controller

I have create custom directive. directive having a template file which create a custom from help with the help of a object pass by controller. I am not able to get form data in my controller. ...
0
votes
0answers
39 views

AngularJS weird behavior in controllers

I'm trying to access my resource response inside the controller/factory but I keep getting this stupid error message! This is my factory: angularApp.factory('Pokemons', function($resource, ...
0
votes
1answer
19 views

Why AngularJS expression is replaced only once in HTML template?

I am new to angularjs and trying following html template. But angularjs only replace the first {{ fragment.id }} expression in text area with the value. All the other {{ fragment.id }} expressions are ...
0
votes
1answer
38 views

Static list item inside ngRepeat

So, I am rendering a basic list using ngRepeat, but need the first <li> to be static content, rather than being generated from the data array: e.g. <ul ng-repeat="item in items"> ...
0
votes
5answers
47 views

AngularJS - ng-repeat when value starts with 'X'

I have a $scope object: "MyData": [ { "CompareCode" : "A004", "CompareMessage" : "test test test, test test test", }, { "CompareCode" : "X084", ...
0
votes
1answer
52 views

Form submit in angular directive

I have a custom directive(contentData) for creating a custom form in my application. which have a template file. This template file have multiple piece of data which is control by a JOSN file. I am ...
2
votes
2answers
58 views

Filter for number range : AngularJS

I have a form with some input types like text, radio etc. When I submit the form, it lists the entered details below the form(used template and directive for this). I want to do filter in age , ie, ...
0
votes
1answer
40 views

AngularJS ng-repeat jQuery find returns only one element

I am developing my first AngularJS app, and came across this problem with jQuery find function. Basically what I am trying to do, is that I have an custom HTML component . It contains list of buttons ...
0
votes
1answer
20 views

AngularJS - Unable to pass value from HTML to directive

I am trying to create a directive so i dont have to repeat a set of HTML 10+ times. Here's the original HTML: <div class="abc"> <div class="xyz"> <div ...
0
votes
1answer
28 views

Autocomplete directive is not working inside ng-repeat

Autocomplete is working fine in single text field like in text field with id="1" and i'm getting data inside "scope.SelectedICD9Code" but when i try same thing in ng-repeat, its logging the data but ...
0
votes
3answers
43 views

Angular can not change parent scope via directive

I am trying to change the controllers scope via directive but it does not change. The goas is to change the $scope.modules in MyCtrl automaticly when i am changing model via directive: link: ...
0
votes
0answers
40 views

Creating a table directive in AngularJS

So I'm kind of new to AngularJS but I'm trying to create a simple table directive however I can't quite figure out what's the best way of doing it. This is what I've got for the directive file: ...
0
votes
1answer
40 views

Angularjs create directive dynamically with ng-repeat

I'd like to know is there any way to create dynamic directive with ng-repeat. Something, like this: <div ng-repeat="document in documents"> <div document.name></div> ...
0
votes
2answers
50 views

How to pass ngRepeat “template” to a ngDirective using transclude?

Demo: http://plnkr.co/edit/TiH96FCgOGnXV0suFyJA?p=preview I have a ng-directive called myDirective and within the directive template I have a list of li tags printed using ng-repeat. I want to ...
0
votes
3answers
43 views

Angular js: How to pic 2 data at a time with “ng-repeat”?

I want to achieve something like this with "angularJS". var myData = [ "Data1", "Data2", "Data3", "Data4", ... ]; var cDom = ""; for(var i=1;i<totalLength;i++) { cDom = cDom + ...
0
votes
1answer
27 views

angularjs app design multiple instances of the same component (directive or directive+controller)

My app needs to have multiple instances of a component that manages a complex model. to display the model and the UI/DOM logic including a template with child directives I'v created a directive, the ...
1
vote
1answer
24 views

AngularJS: Directive repetition, works as attribute but not as element

If I write twice the same directive as attribute, I get twice the result, but when I write it twice as element, I only get the result once, why? I have a very simple directive: ...
0
votes
2answers
44 views

AngularJS nested directives with ng-repeat

I'm trying to build a table based on dynamic data (columns & rows). The goal is to have a reusable component which can be designed mostly from within the template html file. <rows repeat = ...
2
votes
2answers
39 views

AngularJS - Updating .length when filtering data

I have a simple ng-repeat at displays a chunk of data. The users can filter the data by typing in values in the textbox. On page load, i am performing a .length for the total items in my $scope.. ...
0
votes
1answer
25 views

AngularJS - Filter not working on data that hasnt been scrolled to

I have a simple ng-repeat that uses a scroll directive. On load, the first 10 results are displayed, on scoll, more results are show. The issue i am seeing is that when you type a value in the input, ...
0
votes
1answer
53 views

AngularJS - Using a custom filter and ngClick to update same ng-repeat

I have a simple ng-repeat. The ng-reapeat can be populated in 2 ways, firstly by typing a value and clicking the Submit button, secondly, entering values and the list automatically updates. The issue ...
1
vote
1answer
62 views

AngularJS - A simple infinite scroll

I am trying to write a similar small infinite scroll to the one found here: http://jsfiddle.net/vojtajina/U7Bz9/ I've been able to display the first 5 pieces of data, however on scroll, the further ...
0
votes
1answer
19 views

Angularjs pager lazy view render

I have an angular controller with a pager, 10 per page. When render I do the ng-repeat. Question is when render there will be youtube video ID (item.videoID). Instead of display the id I will need ...
0
votes
1answer
53 views

Applying a filter on each column of the dynamic table in AngularJS

I am trying to create a general table using element type custom directive that takes collection of data and generates the table header and create all the rows and columns of the table, then i tried to ...
0
votes
0answers
29 views

angularjs custom table using custom directive and want a filter on each column

Here is my Code. I have created a custom directive to create generalized table that create table and decide at runtime abot the fields, no. of rows and no. of columns. I want to aplly filter on each ...
0
votes
0answers
35 views

Binding a resource and a js object angularjs

I have a navigation menu that I am building based off of a json object coming from an $resource. Sometimes I need to append to this list with new menu items from another $resource. I want to bind the ...
0
votes
1answer
44 views

Angular js checkbox to count checked checkbox's using $watch

I want to check any 3 checkbox's at any point of time from the list, when the length of the selected checkbox's is equal to 3 then I want to disable all the remaining checkbox's(unchecked checkbox's). ...
0
votes
0answers
64 views

Custom directive using ng-model inside ng-repeat

I'm trying to create a list component that is bound to a list defining column metadata and row values. For example: var list = { cols: [ { name: "date", display: "Date", type: "date" }, { ...
0
votes
1answer
55 views

Angular JS ng-repeat not showing up

I was having some trouble with the Angular ng-repeat directive. The attached is my code. <!DOCTYPE html> <html lang="en"> <head> <script ...
1
vote
3answers
69 views

Angularjs: ng-repeat with ng-show input control creation failure

I am having trouble using a ng-repeat value in a ng-show directive. I have tried a number of solutions, "myForm.".{{value}}.".$error.required" and not having the {{}} and even the example below ...
0
votes
1answer
35 views

ngRepeat does not remove old entries when directive manually replaces the element's content

I have a directive which uses different templates based on the some state of the scope like following one: app.directive('foo', function($compile) { return { restrict: 'E', scope: { ...
0
votes
1answer
43 views

custom directive inside ng-repeat doesn't update bound values correctly when using track by $index

I'm implementing a custom grid that applies formatting for certain columns. When you click the "Toggle Sort" link, the second column does not track alongside the first column. However, removing ...