Tagged Questions
2
votes
1answer
23 views
autoscroll angularjs doesn't seem to work
Hi I'm building a chatapp in angularjs and I want the chatbox to scroll down automatically. I'm using this example that I put in a directive: http://jsfiddle.net/atRkJ/
It works as it is but when I ...
0
votes
1answer
12 views
Angular orderBy Date
I have an array which I want to order by date in Angular.js:
<tr ng-repeat="er in vm.readerFeeds | orderBy:'-publishedDate'">
<td>{{er.publishedDate}}</td>
</tr>
The ...
1
vote
2answers
48 views
Angularjs isolates scope directive with ng-repeat
I'm trying to use directive on ng-repeat items each with an isolate scope but it isn't working. I'm looping through each item and coloring it red with the inboxuser-select directive. However, when I ...
1
vote
1answer
15 views
Repeating an object or arrays within an Repeated object in AngularJS
Is there a way to repeat an object or array of items within an object already repeated? As an example if I have this set up:
items = [
{name: 'title', person: [ person1, person2, person3, etc. ]},
...
1
vote
0answers
36 views
AngularJS nested ng-repeat with grouped lists does not loop
My object model is a list of ItemLines, which each contain a number("quantity") of "part". Here is the data structure:
ordersItemLines = [{
"quantity": 1,
"part": {
...
0
votes
3answers
24 views
Angularjs: nested ng-repeat with key reference from one to the another
I want reference the key value from one repeat value to the other. Its a bit hard to explain but here is the jsfiddle http://jsfiddle.net/u75us/163/
I want to get the f_column value from key_var ...
0
votes
1answer
16 views
Ng-options dropdown concat fields if the second one is not empty
I have a table users, every user has a username, but there is also a nullable displayname in the table. I want to show al users in a dropdown with their username, and if available also their ...
0
votes
0answers
26 views
How to get a callback when element will be completely builded
I have custom directive which moves DOM element on every ngShow which returns true. This directive requires dimensions of dom element.
HTML
<div class="span5 search-results__mentions-block" ...
1
vote
1answer
23 views
Angular JS: $index like parameter of a filter
i want to pass the variable $index like parameter of a filter. The code is the next:
HTML:
<div ng-app='myApp' ng-controller="Main" >
<div ng-repeat="i in (filtered = (elements | ...
1
vote
1answer
29 views
Input field blurs when inline editing in ng-repeat
I am trying to do inline editing on a table of data (See the plunkr)
<table class="table table-bordered">
<tr ng-repeat="data in dataset" >
<td ng-repeat="(key, value) in data" >
...
0
votes
1answer
24 views
angularJS: Why does binding to scope inside a directive result in lost content of ng-repeat?
I have this fairly simple HTML structure:
<div ng-controller="MyCtrl">
<div dir1="xy"><div>dir1static</div><div ng-repeat="item in ...
0
votes
1answer
47 views
ngClick not firing in nested ngRepeat filled with data from $http.post()
I have an AngularJS app to search for journeys. In the part of the problem I am trying to show all available countries per region. The idea is that when you click a country, a function has to be ...
0
votes
1answer
36 views
is there a way to detect when the repeated items have finished loading in angular 1.0.8 stable?
Between the ng-repeat div tags,
I've div.cover_container.fetched elements that display data fetched using $http.get
I want to attach event handlers on these elements, but I cannot do so because ...
1
vote
3answers
43 views
Angular ng-repeat not loading
I have had this working in the past, I have moved the site about on localhost and now I can't seem to get ng-repeat to display results. Any ideas?
App:
var app = angular.module('Search', ...
0
votes
0answers
35 views
AngularJS NanoScroller after ng-repeat doesn't show
I've been trough many posts on stackoverflow but I didn't manage to find the answer yet. I have a jQuery scrollbar plugin (nanoscroll), and I want it to update after a ng-repeat.
As many posts here ...
0
votes
2answers
45 views
How to fetch data from Angular JS forms
I have created a plunker here: http://plnkr.co/qbWBFo that shows a form that I am auto filling based on some json (keys). When the user hits submit, I need to access all data that was filled in and ...
0
votes
2answers
40 views
Make an option selected in select field during form edit in angularjs
I have a form with data which is to edit by user. I am getting form data using $http service of angularJS. I have done all, but I cannot make a select field's option selected (I am new in angularJS). ...
0
votes
0answers
29 views
what are $$hashkey objects in Angularjs? How can I read multiple file inputs?
I am trying to get multiple file attachments from file inputs using the following directive:
var app = angular.module('app',['ui.bootstrap']).config(function($interpolateProvider){
...
0
votes
1answer
25 views
AngularJS data binding redrawing inside ng-repeat
If i had a scope like this one
$scope.array = [ { a: 1, b: 2 }, { a: 2, b: 1 }];
With a view:
<div>A:
<div ng-repeat="obj in array">{{obj.a}}</div>
</div>
Having in ...
0
votes
2answers
39 views
Using ng-repeat and limitTo to limit the number of visible items displayed
I'm trying to limit my result sets to a fixed number. I can use limitTo with ng-repeat, but this limits items regardless of their current visibility and removes items from the DOM. I want to limit to ...
0
votes
0answers
31 views
ng-class not evaluating after a model refresh
I have a ng-repeat with an ng-class. the getClass(item) evaluates the item in the row against an array stored in the scope. If the item exists in the array then it is assigned a class.
I have a ...
0
votes
2answers
64 views
How to use ng-repeat in directive with isolate scope?
I'm trying to use ng-repeat in a directive that has an isolate scope, but I can't seem to get it working.
When I add an isolate scope to my directive, ng-repeat seems to not be able to see items, ...
0
votes
1answer
89 views
angularjs ng-repeat not updating view when new data comes in
I have a service which will make a call to the server and returns the data. I am binding service to a variable on scope.
Example:
Let the service be DataModelService
in the controller : $scope.data ...
1
vote
1answer
44 views
AngularJs multi level data drilling
I'm kind of a newbie in AngularJs and I have a complex JSON that i need to get data from to a auto complete.
I need to create an auto complete for ONLY the child elements in the the stucture ...
0
votes
0answers
41 views
Angularjs ng-repeat orderby error in custom directive
I have a directive that creates a list, I'm trying to get the column sorting to work, so I created another directive for sorting the columns.
I get this error in the console while I'm trying to ...
0
votes
2answers
60 views
Need to dynamically build checkboxes in angular from JSON object loaded from ajax
I have a JSON doc in the following format and need to use that to dynamically build check boxes using angular.
var data = {
"Name":[
{
"tagId":4489,"name":"Name","label":"Employee Name"
...
0
votes
1answer
82 views
AngularJS - ngRepeat. Need to keep focus on the same element event after ng-repeat re rendering
I have a list of three inputs, each of them can be deleted by the user by pressing a red cross placed at the left side of them. When the user delete one input, the next one is focused and the selected ...
0
votes
3answers
60 views
Angular - Can't make ng-repeat orderBy work
I've tried many examples of ng-repeat with orderBy, but I can't make my json work with it.
<div ng-app>
<script type="text/javascript" ...
1
vote
2answers
105 views
AngularJS: $resource custom methods not being called
I have a resource defined for which I have defined a custom method.
In my template, I am not able to hit this method.
My code looks like this. The getName() function is not being called. What am I ...
0
votes
0answers
78 views
AngularJS ng-click event not firing within ng-repeat
I have a list of tags built from a JSON object...
<div ng-repeat="comedian in comedians.details | orderBy: 'tag' | unique: 'tag'">
<span ng-click="search = { tag: comedian.tag }">{{ ...
0
votes
1answer
68 views
AngularJS - IE8 - Passing $index to a function within ng-click always return 0 and is executed multiple times
I'm experiencing the following issue. consider this code:
<div ng-repeat element in elements>
<input type="text"/><a ng-click="deleteTag(inputArray, $index)" ...
2
votes
2answers
47 views
How to get parameters of HTML node representing an element in ngRepeat from a controller?
I have an array or image URLs that I insert into a page with ng-repeat as <img> elements:
<ul>
<li ng-repeat="image in images">
<img src="{{image.src}}"/>
...
1
vote
2answers
73 views
Skip ng-repeat JSON ordering in Angular JS
Does anybody know how I can SKIP JSON ordering altogether when I use ng-repeat (in a painless way probably)?
For example, my source JSON looks something like this -
{
"title": "Title",
...
0
votes
1answer
32 views
Multiple Angular Filters for ng-repeat - Is there a better way?
I'm currently working on a car rental site which I'm building with angular.
In the car selection section the user needs to be able to filter on a lot of different properties, such as 4x4, Automatic ...
1
vote
2answers
94 views
{{$index}} of ng-repeat computed after linker function of angular directive. $compile it?
html
<div repeater ng-repeat='item in items' class='first' id = '{{$index}}' > {{item}} </div>
angularjs directive:-
angular.module('time', [])
.directive('repeater', function() {
...
0
votes
0answers
26 views
Problems with scope: ng-repeated and filtered custom directives
I have an array of objects that each contain a url, a title, and a description of page content, and I built a little directive to display the information.
On initial glance, my directive works fine. ...
1
vote
1answer
97 views
AngularJS orderby integer field not working properly
I just took the simplest demo from http://docs.angularjs.org/api/ng.filter:orderBy and just change the value of age to have different number of digit. It stop working as it expected. Its ordering ...
0
votes
1answer
34 views
AngularJS two objects in the same ng-repet
Can i have two objects in the same time in ng-repeat ?
<tr data-ng-repeat="target in targets |session in sessions |filter:query | orderBy:orderProp">
0
votes
1answer
124 views
angularjs; sorting in all records, not only in in current page
I've found this simple example for sorting/searching/paging records with angular js. It works fine with search and paging functions. But sort function sorts only in the current page's records. How can ...
0
votes
1answer
36 views
How to update ng-repeat variable using autocomplete?
Thanks to SOF for solving my last issue in angularjs and autocomplete.
Angularjs with jquery auto complete not working
Now, I have an issue of same type in ng-repeat...
In View
<tr ...
1
vote
1answer
104 views
AngularJS - Issues with events inside controller instances generated by ng-repeat
today I'm experiencing an issue that sounds weird to me but has some logical explanation for sure...
I'm building a table where I'm allowing to inline edit the fields values. You see a span with the ...
0
votes
2answers
87 views
Nested ng-repeat with AngularJS
I cannot seem to get out the values I need from a nested ng-repeat in AngularJS.
I have the following data sent from the server:
[{"Your ...
0
votes
1answer
293 views
Angular.JS ng-repeat with nested json array
I have a People service using $resource, which I call from a PeopleCtrl using People.query() to get a list of user from a json api. The data comes back like so:
[
{
"usr_id" : "1"
...
0
votes
1answer
104 views
Angular ng-repeat in dropdown
I'm trying to do this with ng-repeat in Angular:
<select ng-model="selected_item">
<option ng-repeat="item in items" value="{{item.id}}"
...
1
vote
1answer
139 views
AngularJS - parsing JSON feed with namespace
New to angular, and it is awesome.
One thing I am having a brain fart on is parsing a JSON feed that contains namespaces:
Example from JSON feed:
"title": {
"label": "Fuse"
},
"im:name": {
...
1
vote
1answer
333 views
Angularjs dom load ready
I am working on angularjs. I created a scrlipt. When I started applciation on browser, appearing like this,
and a little later coming result,
<body>
<div ...
0
votes
1answer
275 views
AngularJS multiple filter with custom filter function
I am trying to filter the list with multiple filters + with a custom filter function.
The original working jsfiddle example is http://jsfiddle.net/ed9A2/1/ but now I want to change the way age are ...
0
votes
1answer
32 views
Anuglar IE8 $index issue
I have built a repeater that makes a couple of elements and puts them on top of each other.
In modern browsers this works just like i expected, but in IE8 it's buggy and doesn't parse the style part ...
0
votes
1answer
62 views
Using <select> with nested objects in Angular
I'd like to create an html output like this:
<select>
<option value="" class="">-- Choose category --</option>
<optgroup label="Dogs">
<option ...
0
votes
1answer
422 views
Angular JS ng-class-odd in nested ng-repeats
I'm trying to develop a very generic table outputter - no set number of rows or columns. As such, I've got nested ng-repeat attributes, as such:
<table>
<tr ng-repeat="row in ...