Tagged Questions
0
votes
1answer
15 views
Acessing directive's scope within trancluded ng-repeat
I'm writing a component and need to ng-repeat on directive's isolate scope property.
Consider this:
<div some-directive>
<h2>Let's repeat something</h2>
<p ...
0
votes
1answer
37 views
How can you filter objects by an array in angularjs
was just wondering if you can filter an existing array with another array of filter.
So say our original json was:
[
{
"bookname": "harryporter",
"year": "2000",
"author":"J. K. ...
0
votes
3answers
36 views
ng-model not working Angular js
I am trying to update a parent scope in a nested ng-repeat loop but it doesn't work ! I have literally been on this for the 2 pass hours !
This is my nested loop:
<div ng-repeat="input in config" ...
0
votes
1answer
20 views
how to show exact content of ng-repeat using ng-click in angularjs
I am trying to show exact content when I click on data from ng-repeat.
<div ng-repeat="trailSpot in trail.wayPoints">
<a ng-click="viewState.showSpotDetails = ...
0
votes
0answers
18 views
ng-repeated inputs not updating filter in Angular js
I am trying to filter a dataset, and also i have a config json file of inputs, and i am trying to filter the data set, based on the inputs
ng-repeat for inputs:
<span ng-repeat='ui in ...
0
votes
0answers
21 views
AngularJS ng-repeat do not refresh after model change with $rootScope error
Hello members of AngularJS, I am a newbie towards Angular facing this problems where my ng-repeat does not refresh the page after a model change even I had already manually reload the model after ...
0
votes
2answers
24 views
Angular js ng-class false condition not working in ng-repeat
I want to highlight li if that radio is selected.
Inside ng-repeat, ng-class true condition is working, but false condition is not working, please check the code below
<div ng-init="friends = [
...
0
votes
1answer
16 views
My directive stopped working when I started using ng-repeat with a different controller. What am I doing wrong?
So I followed this guide so I could have a nav bar on every page: http://tomaszdziurko.pl/2013/02/twitter-bootstrap-navbar-angularjs-component/
And it was working, until I created a separate ...
1
vote
1answer
21 views
How to filter JSON data based on current date
I wanna ask about angularJS.
I have json here
var friends = [
{
"id":1,
"Tanggal":"\/Date(1408060800000)\/",
"Nama":"Hari Departemen Agama Republik Indonesia"
},
{
"id":2,
...
0
votes
0answers
30 views
What am I doing wrong with my controller to load images?
I would like to be able to pull images from a folder and put them in a carousel. So far I have the following in my angular controller.
var carousel = angular.module('revampApp', []);
...
0
votes
1answer
22 views
how to set text on button which is selected from menu in angular?
I make a menu option which is show on button click .I need to show deleted option on button text.by default "select value" text display.Now if user select any other value it should show on button.
can ...
0
votes
1answer
47 views
How to set value in input field in angular js?
I am a beginner in angular. I am able to make drop down and able to get it value using ng-model. But I need to get different value on input field. If the value of drop down value is blank then input ...
0
votes
1answer
22 views
Use nested ng-repeat outside the element
everyone, I've a scenario like this...
$scope.flags = {
'porIdade': {
'text': 'Por idade',
'flags': {
'meses1a3': '1 a 3 meses',
...
1
vote
3answers
67 views
How to get consolidated results from ng-repeat?
See this plunker.
<div ng-repeat="subCategory in subCategorys | filter:{tags:tag}:true | orderBy:'id'">
{{subCategory.id}} {{subCategory.name}} {{subCategory.tags}}
...
0
votes
1answer
30 views
ng-repeat, ng-click, directive, and controller interaction
I have this directive snippet:
return {
scope: {},
restrict: 'E',
templateUrl: 'partials/order_table.html',
controller: 'OrderController as x',
link : ...
-4
votes
0answers
19 views
The radio buttons are not getting cleared in angular js
I have a weird problem with radio buttons not working with angularjs
I have two sections of radio button on my page
Section 1
<input type="radio" ng-model="myradio" name="Monish" value="Monish" ...
0
votes
0answers
30 views
Can't apply filter with data returned from $asArray in AngularFire?
I can't apply filter as normal with data returned from AngularFire. It's a surprise that when I run it on Plnkr, the filter works. But when I run it on Firefox on my computer, it doesn't work and ...
2
votes
1answer
53 views
Angularjs ng-repeat filter on multiple layers of the JSON
I am trying out angularjs framework.
Have a statistics information in the form of JSON like :
[{"Region": "USA",
"People":[{"Id":2,"Name":"Pals"}, {"Id":1,"Name":"Andrew"}]},
{"Region": "India",
...
0
votes
4answers
39 views
ngRepeat Filter by Array name?
I have the following JSON structure in my Angular app:
Sample: http://pastie.org/pastes/9476207/text?key=u6mobe15chwyiz1jakn0w
And the following HTML which is displaying every product in the ...
0
votes
1answer
19 views
Angular ng-repeat through child arrays
In my app I have the following JSON structure:
So to clarify, I have a 'parent' array and then inside that, child arrays (brands) which then contain products. This array is then attached to the ...
0
votes
1answer
17 views
AngularJS nested ng-repeats with nested bindings
I am trying to make an entirely dynamic angularJS page in such a way that the data-model and header-column-model can be passed in as JSON format and the angular/view can decode everything no matter ...
0
votes
0answers
27 views
ng-repeat filter using dynamic checkboxes
I have a search box at the top that is working using the filter: query. I want to add an additional filter that uses a checkbox list of tags. Here is the list of repeating services:
<div ...
0
votes
1answer
16 views
Angular live search filter on row iterator
I have a template in which I have rows, and there are two elements in each row and each element has different classes so I have my Html structure like so (simplified)
<div ng-repeat "row in ...
0
votes
2answers
21 views
AngularJS - Upgrading v1.2.5 to 1.3 to use bind once
I am trying to improve the performance of my ng-repeat's. I have upgraded my project to use library v1.3.0 (main lib and route).
I am trying to use the bind once as here: Do bindings nested inside of ...
0
votes
1answer
44 views
ng-repeat filter negate string from object - angularjs
I want to put this filter: filter:'!Category'
on to this element like so:
<div ng-repeat="(prop, ignoredValue) in wines[0] | filter:'!Category'" ng-init="filter[prop]={}">
But it does not ...
0
votes
1answer
16 views
Full Calender not working with angular code
I'm using ashraw's fullcalendar for an event scheduler in my project, and to display the events I have to write the code in jquery like this:
$(document).ready(function() {
...
0
votes
0answers
5 views
Angular-kendo widget causing inputs to reset to pristine when adding block within ng-repeat
Having an issue working with Angular-Kendo within a repeating sub-form. The issue is that when adding another form-block item within the ng-repeat area, the input is getting reset to pristine.
Here ...
0
votes
1answer
25 views
AngularJS v1.2.21 ngAnimate for ngRepeat list
I want to use Angulars animate module to sequentially populate the results from the following:
<div class="search-result" ng-repeat="plate in searchCtrl.results.plates">
<p ...
1
vote
1answer
47 views
angular ng-repeat inside of ng-repeat not working in table
I have the following
<tbody ng-repeat="history in orderHistory">
<tr>
<td>{{history.reference_code}}</td>
<div ng-repeat="items in ...
0
votes
2answers
27 views
Ng-Repeat With Changing Variable
Using ng-repeat="i in getNumber(myNumber) track by $index" to repeat a specific number of times which is defined by a select object in HTML.
var number = parseInt($( "#number option:selected" ...
0
votes
0answers
28 views
few issues need to be fixed in angularjs ui tree with check boxes (get selected list, check on children too on select all, etc)
please see my plunker at http://plnkr.co/edit/Cfn5l6YySrLjidYvgi9V?p=preview. I am trying to modify angular-ui-tree (http://ngmodules.org/modules/angular-ui-tree) to include check boxes. I am facing ...
0
votes
2answers
14 views
How to compose filters (with OR)?
My messages are arrays of message objetcs:
message = {'text':text, 'date':Date.now(), 'from':from, 'to':to}
I would like to apply a filter on ng-repeat
<div ng-repeat="text in texts | filter" ...
1
vote
2answers
51 views
Create table in HTML using ng-repeat
I've an array of string, I need to display it using ng-repeat of AngularJS like the following screenshot:
I have an idea, to "play" in the index-s to display that:
<tbody ng-repeat="param in ...
0
votes
2answers
26 views
Angularjs how to conditionally check a checkbox based upon existence of repeat element in another list
as a very new angularjs user with a cshtml page, during page load of a modal window, I am trying to check a repeating checkbox if it exists in another list. the code below is conceptual:
<li ...
0
votes
2answers
40 views
Displaying data with AngularJS loaded by NodeJS
I'm building my first MEAN twitter like application and currently try to display a list of posts to the gui. what I currently do is:
The angular.js part:
in my main.js:
angular.module('MyApp')
...
0
votes
1answer
89 views
AngularJS - can't access $valid on dynamic inputs
UPDATE: I've added a custom directive which allows me to access the input with a dynamically generated name, but $valid is still undefined.
I'm very new to Angular (trying to switch from jQuery) and ...
0
votes
0answers
22 views
Get nested form data on submit
I have an parent form that holds a table filled with nested ng-form's created by ng-repeat. I'm having trouble gathering the data from the nested forms after the submit button is clicked.
Here is my ...
0
votes
2answers
28 views
Angular and JSON, having trouble parsing for ng-repeat
I'm horribly sorry if there is a post for this, I tried to search but didn't find a answer.
Problem:
I'm calling a web service and receiving not so well formed JSON data from a Dynamics Nav service:
...
2
votes
1answer
42 views
Can't trigger animation on nested ngRepeat
I can't figure out how to trigger animations on a nested ngRepeat with Angular.
The CSS class ".test" is animated. When using ".test" on the inner ngRepeat it doesn't work (Plunker):
<div ...
1
vote
2answers
49 views
Angular.js: Add tag every three elements
I have a list of divs and I want to achieve the following html example:
<div class="groups">
<div class="group">Whatever 1</div>
<div class="group">Whatever 2</div>
...
2
votes
1answer
34 views
Decorating ng-click inside ng-repeat
I need to decorate the ngClickDirective in order to add a custom listener. This code works fine on ng-clicks which are not nested inside of ng-repeat:
$provide.decorator('ngClickDirective', ...
0
votes
1answer
48 views
Conditionally add row in ng-repeat
I've got a simple repeating table-row in AngularJS
<tr ng-repeat="item in items">
<td>{{ item.prop1 }}</td>
<td>{{ item.prop2 }}</td>
</tr>
My item ...
1
vote
1answer
27 views
AngularJS Custom directive on same HTML element as ng-repeat
I wrote a simple directive to be able to dynamically set the value of ng-model, as described in this other Stack Overflow question: AngularJS - bind ng-model to a variable which name is stored inside ...
0
votes
0answers
15 views
Owl-carousel and angularjs. How ot work?
I need to use owl-carousel on my page with ng-repeat
This is my json
[{
"name": "Jonh",
"spec": "soldier"
},
{
"name": "Stan",
"spec": "doctor"
}]
And my controller
...
0
votes
1answer
34 views
html select options custom template
<div class="input-group">
<span class="input-group-addon start"
ng-bind="type.refs['r1'].title"></span>
<select ng-model="ligth_r1">
...
0
votes
1answer
61 views
Angular JS: Unable to set value to ng-model variable inside ng-repeat
I have the below code that is working fine. That is, it is displaying the combobox with Country names in it and when I select a country in the combobox it prints the "Filter Data: "
...
0
votes
0answers
38 views
Is my data structure to blame for multiple select dropdown not working in Angular?
I'm attempting to create a multi-select dropdown.
I saw that I could use the ng-options directive to basically compare two datasets, set any matching option to selected.
Here are the two collections ...
0
votes
2answers
23 views
AngularJS displaying only the last element from JSON data
I'm having an issue in Angular where I have a controller that gets data from a service. The controller gets the data from the service but it only returns the last element.
See this jsfiddle for an ...
2
votes
1answer
28 views
Insert controller from ng-repeat element
I have following problem. I would like to add a controller, whose name is included in the object. Object I receive from ng-repeat.
This is array:
$scope.components = [
{
name: "box",
...
0
votes
2answers
35 views
Is it possible to limit the number of displayed items in a loop in AngularJs
I have a list of categories and many questions which belongs to different categories.
{
"id": 5,
"description": "Does your site have Facebook?",
"question_category_id": 3
}
{
"id": ...