0
votes
0answers
6 views

AngularJS - Show a div if date is within last six months

I have a simple ng-repeat that displays a list of names and icons: <div ng-repeat="data in MyData"> <p>Name: {{ data.Name }}</p> <span ...
0
votes
3answers
19 views

AngularJs Injector Module Error

i'm new in AngularJs (started an couple hours ago) and i'm trying to complete the AngularJs in 60 minutes'ish tutorial. But i got stucked on the first controllers example. This is my code: ...
-1
votes
0answers
19 views

AngularJS - Adding CSS classes to siblings

I am trying to add a CSS class of open a DIV's sibling. Here's my HTML: <div id="profile-information"> // Code </div> <div class="profile-info"> <div ...
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
23 views

Generate new $index for array items per specific key:value in Angular

Please be patient if I don't understand something and need clarification as I'm still new to Angular, and please simplify explanations for an Angular newbie if you can, thanks! I am working on a ...
0
votes
0answers
17 views

AngularJS - Filter HTML character references

I have a set of JSON responses/results that i display to the front-end. Some of these contain HTML character codes, for example: <b>Some Text</b> Rather thank using ngSanitize, can i ...
0
votes
1answer
22 views

Preserve scope values while moving template in ng-repeat

I have two collections binded to ui that populate through ng-repeat In that I have included ng-include="template.html" <div> <div ng-repeat="item in items1"> <ng-include ...
0
votes
2answers
32 views

AngularJS: scope change in ngClick gets lost

I have ngClick and ngClass on an element duplicated by ngRepeat: <li ng-class="{'active': $parent.mem.A == $key, 'not-active': $parent.mem.A && $parent.mem.A != $key}" ...
0
votes
1answer
40 views

Angular JS Use modal in ng-repeat list

I am displaying a list using AngularJS's ng-repeat... Below is the template per list item; It all works except for the {{...}} that are used inside bootstraps modal. It 'almost' works the way it ...
-1
votes
0answers
23 views

Kendo UI Grid Error messages not appearing in UI-Bootstrapper Alert ng-Repeat

I am trying to handle Kendo UI errors gracefully by displaying a UI-Bootstrap Alert with the error message in it. View - Index.html <alert ng-repeat="alert in alerts" type="{{alert.type}}" ...
1
vote
3answers
29 views

Angular not selecting radio button from model

I'm working on system where I have an ng-repeat populating from an array of elements, with a radio buttons setting a property. When it loads in, none of the radio buttons are selected, but when I ...
0
votes
5answers
42 views

AngularJS - Filter empty objects

I have a $scope.myData object that contain a chunk of data. What i am trying to do is display the data but filter out the nulls and empty strings: $scope.myData = [ { "ID" : "001", ...
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
48 views

AngularJS ng-repeat not updating after database insert

I'm new to AngularJS. I have been stuck on this all night. I have a form and I want the table to add the new row once I click SUBMIT. The form works fine and adds the document to mongodb but I can not ...
0
votes
0answers
17 views

ng-repeat do not evaluate from $sce.trustAsHtml inside directive

I have a directive that has a piece of custom HTML that I can pass in as a custom option. I would like to use ng-repeat inside the custom HTML, but it is not being displayed. Here is the code. var ...
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, ...
1
vote
2answers
34 views

Nested JSON not display in ng-repeat

I'm having trouble accessing the nested JSON using the ng-repeat directives. I know it is working because the not nested part of the JSON object is displaying. Here is a plunker of my code: ...
0
votes
1answer
30 views

AngularJS ng-repeat filter items based on date value

I have a simple ng-repeat: <li ng-repeat="data in myData.Entries"> {{ data.EntryNumber }} -- <strong>From</strong> {{ data.InfoDetails[0].FromDt.substring(6, ...
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
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
2answers
33 views

AngularJS ng-repeat not working with $http.get

So I have a basic page, which I can define json data manually in scope, and everything works fine. Example: <!DOCTYPE html> <html ng-app="ordersApp"> <head> <scrip ...
0
votes
2answers
32 views

Can't bind 2 objects from JSON in Angularjs?

I'm new to Angularjs. I am learning about factory. In my example, I have 2 requests to Restful Api and got 2 responses in JSON format. With the first json, I can use ng-repeat to show them but the ...
0
votes
2answers
20 views

AngularJS Counting Number of Specific Items Starting With a Value in JSON Dataset

I have a set of JSON data: "MyMessages": [ { "Code" : "N101", "ID" : "History", "Indicator" : "Down", "PosChangeMessage" : "test test test ...
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
2answers
26 views

AngularJS Counting Number of Specific Nodes in JSON Dataset

I have a set of JSON data: "MyMessages": [ { "Code" : "N101", "ID" : "History", "Indicator" : "Down", "PosChangeMessage" : "test test test ...
0
votes
1answer
36 views

Dynamic form creation-AngularJS

ive run into a problem that I was hoping you could help me out with. Basically I am trying to create a dynamic form creation page using AngularJS and bootstrap (just a simple one). I have ...
0
votes
1answer
51 views

How use ng-repeat for plain text AngularJS

I know that something like that, will work: <span ng-repeat="item in items">{{item.name}}</span> How can I do the same with plain text? I would like to append {{items[0].name}}, ...
1
vote
1answer
48 views

Getting dynamic form values

Is there a way to check which like option is selected for which text box when submitted. As shown below user may select like only for some text values. The html tags are dynamically generated based on ...
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
34 views

Use regex on data and assign matches to new scope in AngularJS

I'm having trouble finding any examples of this, but it doesn't seem like it should be too difficult. Basically I have a $resource that returns JSON. In the controller I assign some different things ...
0
votes
1answer
93 views

How to get table data from json file in angularjs

I want to get data from a JSON file using angularjs or jquery. The following code is not working, I cannot find the mistake: JSFIDDLE html: <head> <script data-require="angular.js@*" ...
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 ...
0
votes
2answers
41 views

AngularJS - Getting filtered ng-repeat $index from inside a contoller

I have an ng-repeat list with a filter. I can't seem to find how to get the visible $index from inside of my controller. I can easily display it and it changes dynamically when the list is getting ...
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 ...
1
vote
2answers
44 views

2-way binding to values in ng-repeat tags

I have an array of headers for my table, I want these headers to be editable: $scope.headers = ['header 1', 'header 2', 'header 3']; In my view I display them like so: <table ...
0
votes
0answers
26 views

AngularJS with spring ModelAndView Ajax

I am sending a request from below jsp <body ng-controller="MyController"> <div data-role="page" class="container"> <%@ include file="header.jsp" %> <div ...
0
votes
4answers
46 views

Angular.js Select option without using ng-option directive

I get an json oject from a service, and I use some of it's fields to populate my select option list. When I try to print the selected value in my controller, output response is "undefined". Where ...
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
0answers
50 views

Angular.js select option value in controller

I receive this json from a service after client call. JSON [ { "Accreditment" : { "Id" : "1", "Creator" : "John Smith", "IdCreator" : "1", "CreationDate" : ...
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" }, { ...
1
vote
2answers
36 views

Select does not auto update on ng-model change rendered using ng-repeat

I am creating dropdown in a directive as follows: <select ng-model="selectedSite"> <option value="new">Add New Site</option> <option value="line" ...
0
votes
1answer
41 views

Angular.js update scope after variable has changed

I have a search-bar in my web page, which is associated with a controller that receives a JSON object as a response from the server. I then save this response in a global variable named assetResult. ...