Tagged Questions
2
votes
1answer
49 views
Angularjs pass multiple arguments to directive ng-repeat
I am stuck in a doubt I have html :
Here, there are two types of data : post and person. The json for each post has array of persons. I wish to retrieve the rating Value, dataCategory and id ...
1
vote
1answer
33 views
NG-Repeat compare to current date using filter?
Ok I have an object that contains a list of dates and I'm traversing it like so:
<select ng-click="monthpicker()" >
<option class="animate-repeat" ng-repeat="returnpicker in ...
0
votes
1answer
9 views
access child scope property in another child in angular js
is it possible to access sibling properties in angular js? I have a parent and two children
My parent is my parent div
children are:-
1. <li ng-repeat= "item in list"/>
2. and within ...
0
votes
1answer
28 views
ng-repeat with fadetoggle jquery
I have many form in my angular app like this
<form ng-submit="" ng-repeat="app in apps">
<div class="container">
<div id="single-app" >
<div ...
0
votes
1answer
30 views
Validation directive code is executed on every item in ng-repeat
I am writing a single page application using Angular and Breeze. I have a set of entities displayed on my page using data-ng-repeat.
I am doing in place validation on the entities by having an "edit ...
1
vote
2answers
47 views
If else conditions in angularjs templates
I am quite new to AngularJs. I am working on a Q&A Application where i have to render some questions and its answers in the form of a table. I have three Types of questions which I have to render ...
2
votes
1answer
27 views
configure angularjs module to send patch request
I am totally new to AngularJs. I am trying to send a PATCH request using Angularjs to Django Tastypie API's. My code is
var module = angular.module('myApp', []);
module.config(function ...
0
votes
1answer
17 views
Select multiple objects and save to ng-model
HTML:
<select ng-model="contact.groups"
ng-options="item.id as item.name for item in groups"
ng-multiple="true" multiple>
<option value="">Choose ...
0
votes
1answer
57 views
AngularJS ng-repeat doesn't update when LocalStorage is changed (using store.js)
In my view I want to display a list of items (subject names) which are saved in a LocalStorage element. My code in the view looks like this:
<div class="list">
<a class="item" href="#" ...
2
votes
1answer
33 views
Angular filter exactly on object key
Hi I have a small angular app like so:
html
<body ng-app>
<div ng-controller="Ctrl">
<div ng-repeat="user in users | filter:1">
<span>{{ user.username }}, {{ ...
1
vote
2answers
28 views
orderBy two fields (one in reverse)
I would like to order a friend list by status (online firsts, offline lasts) and by alphabetical order. All I manage to get is:
Online firsts / Reversed alphabetical order
Or offline firsts / ...
0
votes
1answer
30 views
passing model value from ng-repeat to ng-include to a directive using “=” in scope fails
i have the following code in my homepage
<ul>
<li ng-repeat="item in list" ng-bind-html-unsafe="item.Content" ng-include="item.Template" > </li>
</ul>
the value of ...
2
votes
3answers
40 views
Ng-repeat priority
I have the following:
app.directive("myDirective", function($compile) {
return {
replace: true,
scope: {},
template: "<div></div>",
link: ...
1
vote
1answer
53 views
ng-repeat 'track by $index' behaviour on element removal
I am building an app which features a kind of "playlist". This is represented an ng-repeated custom directive with ng-repeat = "element in playlist"
Because I want to allow a user to re-use the same ...
0
votes
1answer
24 views
Detect when a custom filter has completed in AngularJS
I have a custom filter function I'm calling for ng-repeat directive:
<div ng-repeat="app in appVm.appList | filter:appVm.assetFilter">{{app.title}}</div>
This obviously hits my ...
0
votes
0answers
29 views
how to add directives dynamically while using ng-repeat in angular js?
i have the following code on my homepage:-
<ul>
<li ng-repeat="item in list" ng-controller="controller1"></li>
</ul>
now item has various properties like item.type, ...
0
votes
0answers
20 views
AngularJs - ngRepeat with a filter that returns a new object
I'm trying to apply a transformation to the objects in my filter, which results in an array of new objects being returned. This is because I want to filter the objects AFTER the transformation is ...
0
votes
1answer
37 views
trigger function after ng-repeat
I am new to Angular, and I would like to do a really basic example.
After displaying some data with a ng-repeat, I would like to use some of those data with javascript functions. But I don't know when ...
0
votes
1answer
31 views
AngularJS loop through JSON and check if multidimensional
I have the following controller:
controller('homepageCtrl', function ($scope) {
$scope.menu = {
"Home": "/",
"Data Sources": {
"Add": "/datasources/add",
"Edit": ...
0
votes
2answers
26 views
Need a callback after filtering the rows when using ng-repeat along with filter in angularjs
I am using angularjs, ng-repeat to fill the required data in the datagrid.
Something like this:
<input type="text" placeholder="Search" ng-model="query">
<tr ng-repeat="item in items | ...
0
votes
0answers
24 views
Creating a side panel for Google Map using Angular & Firebase
I basically want to create a map (similar to this: http://econym.org.uk/gmap/example_map2c.htm ) where there's a main pane with markers on Google Maps and a side panel with name of each marker (and ...
0
votes
1answer
27 views
Angular ng-repeat exact mach
I'm trying out Angular and love it but now I have a small question.
Ok so this is my code:
function phonesCtrl($scope) {
$scope.phones = [
{
"type":"Smartphone",
},
{
...
0
votes
0answers
32 views
AngularJs running code after ng-repeat binding happens
I have a data table that I am loading with a call to a $resource. It is doing a query and using the returned value in an ng-repeat within the view. This all works great. The problem is that I am ...
1
vote
1answer
45 views
AngularJs Remove duplicate elements in ng-repeat
I have one dictionary which is stored in field_detail
<li ng-repeat = "field in field_detail">{{field.displayName}}</li>
Now I dont want to include duplicate displayName of field_detail ...
1
vote
0answers
77 views
Fixed header in bootstrap table with angularJS
I'm having an issue with my table styled with bootstrap and filled by ng-repeat (AngularJS)
I want it to be fixed so I tried adding
.fixed-header thead {
position : fixed;
}
and
...
-1
votes
0answers
45 views
How should I handle this aspect of the C in CRUD for AngularJS? [closed]
I want to make an interface with (Ajax-oriented) Django on the back end and AngularJS on the front end.
I see one or two ways to create records (and update the relevant display), but one of them at ...
1
vote
1answer
51 views
How to test dynamically named inputs inside ng-repeat using $setViewValue()
I am trying to test a directive that dynamically adds form inputs to a page using ng-repeat. The code runs fine in the browser but trying to test it with Jasmine I discovered what seems (to me) to be ...
0
votes
1answer
39 views
ngRepeat's animations don't work when using ngInclude on the same element
Test case: http://plnkr.co/edit/dsG3gxFomAK8Q15Xfouj?p=preview
The test case above is a list of data rendered with the ng-repeat directive, twice. Once without using ng-include and once using ...
0
votes
1answer
21 views
How do I update the scope of a service?
Here is my code:
angular.module("testApp", [])
.service("testService", function() {
var privateScope = [1,2,3];
return {
getScope: function() {
return privateScope;
...
1
vote
1answer
43 views
Calculate total over repeated cart item totals with angular
I've a simplified shopping cart like the following with a controller for each cart item:
<!DOCTYPE HTML>
<html ng-app="cart">
<div ng-controller="cartCtrl">
<table>
...
0
votes
1answer
25 views
angular Failed to load resource error in inspector
I am uploading dummy content using angular's ng-repeat.
var app = angular.module("homeApp", []);
app.controller("entriesView", function ($scope){
$scope.itemEntry = [
{
image: ...
0
votes
1answer
22 views
Dynamic controller pass to ng-template
I've been trying to improve myself on angularjs so i've started a project with angularjs in it. But i got stuck ...
I'm trying to ng-repeat some html elements using controller1.modalItems. Within the ...
0
votes
1answer
35 views
AngularJS -> Capturing when DOM has finished rendering elements in directive
We're using AngularJS to render a schedule table with ng-repeat.
I also need to call an initialization function for a jQuery plugin that acts on the DOM objects being rendered by the Angular code.
...
0
votes
0answers
25 views
Not sure I understand ng-repeat - returning number of items in one of the indexes
I'm learning and attempting to use Angular to build a table that will be draggable and sortable however I'm trying to wrap my head around the "Angular Way" of doing things and think I'm doing it ...
0
votes
1answer
35 views
How does ng-repeat work?
I dissected ng-repeat and extracted the code blocks attached, seeing that these comprise the logic that handles the repeating algorithm (which I want to understand how it works).
I have quite a few ...
0
votes
1answer
15 views
Angular - unwanted behavior -new object permanently binds to template element
I have a small Angular project which implements a Controller thusly:
concernsApp.factory('ConcernService', function ($http, $q) {
var api_url = "http://localhost:8000/api/";
var ConcernService = {
...
1
vote
1answer
23 views
Dynamic creation of ng-model in angularjs
I have property fields that contains string array:
in controller I have:
$scope.data = {};
$scope.fields = [
"new0.name",
"new0.type",
"new0.address",
"new0.city",
...
0
votes
2answers
28 views
Targeting nested array in ng-repeat
Can someone please advise me what I'm doing wrong here?
I am retreiving some data and injecting in to a controller as 'productInfo'.
I can load in the data fine but when I want to target specific ...
0
votes
1answer
52 views
AngularJs. Render table with ng repeat and ng switch
I'm trying render table with two columns using angularjs directives.
<table>
<tr ng-repeat="message in messages" >
<td ng-switch-on="message.network" ng-switch when="twitter" ...
2
votes
2answers
33 views
Where angular holds DOM state, and based on what criteria
Consider this scenario: You create a simple state multi-check, and you provide a search for it via angular filters. See this fiddle.
<div ng-app>
<h2>Instant Search</h2>
<div ...
1
vote
2answers
51 views
$index of Object in Array while using ng-repeat and a filter
Im fairly new to angular and have been able to get around somewhat. But I cant seem to find the answer to this scenario...
I have an array of objects, which I am pulling down from firebase. I am ...
1
vote
0answers
55 views
AngularJS Table dat refresh based on dropdown list value selected
Interesting to read through your AngularJS articles, especially for new learner.
Currently I am working on a project which has a senario to select parent list control to populate another dropdown ...
6
votes
4answers
97 views
How to make angular js hide DOM elements, and not remove them, in filters
Angular ng-repeat with filter works this way (I just discovered it by observing DOM in Chrome's developer tools):
It actually removes the nodes which don't satisfy filter condition and re-renders ...
0
votes
1answer
48 views
Angular way to bind model from ng-repeat and send to new function
<li ng-repeat="result in apiResult">
<span class="">{{result.id}}</span>
</li>
<form ng-submit="findone()">
<input type="text" ng-model="searchTerm" ...
0
votes
1answer
35 views
unable to access nested objects with angular ng-repeat
"Private" property access no longer allowed:
https://groups.google.com/forum/#!msg/angular/7l4j70wlPwI/dgt4chDVseAJ
My $scope returns an array. An object within this array that looks like this:
0: ...
1
vote
0answers
103 views
AngularJS nested directive doesn't load when interpolated via ng-repeat
Something's telling me I have enough clues that I should be able to get this, but I've been down so many paths that my head is spinning to much to piece together a working solution.
I have a ...
0
votes
1answer
22 views
Access parent index in nested ng-repeat
I would like to do this really basic example :
<div ng-controller="ctrl">
<li ng-repeat="config in configs">
<span >Config : {{config}}</span>
<li ...
0
votes
0answers
15 views
ajaxify-html5 doesn't work with angularjs ngRepeat
I've an application using angularjs and I want to ajaxify all. All links work very well except links in ng-repeat
<ul>
<li ng-repeat="demande in demandes">
...
-1
votes
1answer
35 views
In html the radio button text clickable is not happening ? I had used the two list items in ul
See my problem is that i had written the code in angularjs with the using of ng-repeat for two times and based on some condition i had differentiated thatand one more important point is that i had all ...
0
votes
2answers
55 views
nested table using ng-repeat
What I'm trying to do is repeat three levels.
Demo: http://plnkr.co/edit/qXLcPHXDlOKZYI5jnCIp?p=preview
<table>
<thead>
<tr>
<td>Block</td>
...