Tagged Questions
0
votes
0answers
11 views
ng-repeat not updating when ng-model input updates
Below I have code example that will successfully group data based on a model property for an ng-repeat, but only on the initial page load. So for example on load I do
$scope.filter_items.group_1 = ...
0
votes
0answers
10 views
Retain position of element in ng-repeat
I have an array of objects that I am displaying in an HTML page using the ng-repeat directive. Each item when clicked opens a new html page. Whenever I click on any item, it takes me to the new page ...
0
votes
1answer
8 views
Call jquery masonry using angularjs
i'm trying to get angularjs to work with jquery masonry. Without angular i have managed to get masonry to work fine including css. However, i have used angular to script the whole web app and i now ...
1
vote
1answer
16 views
ng-repeat pagination looses items
I'm learning AngularJS following the good Pro AngularJS written by Adam Freeman.
I'm stuck on ng-repeat pagination using filters. I know there are bootstrap ui directives for Angular, but i'm ...
1
vote
2answers
33 views
Angular filter using ng-repeat
if you take a look at the plunkr http://plnkr.co/edit/ilNYwiTwJIwe5HwteErz?p=preview
<select ng-model="query.type">
<li ng-repeat="tech in techs | filter : query">
I have a doubt- how ...
1
vote
0answers
12 views
Firebase syncObject is showing redundant error in my Angular controller
I am building an app for a client who has, as one of their data sets a master list of all their members. I have the data coming in from Firebase and everything runs peachy, but it's not that DRY I am ...
0
votes
1answer
33 views
Multiple filters for ng-repeat with track by
I have a ng-repeat with filters put as shown below before. For some reason it didnt work in the web server and i think its because of duplicate items not allowed in browser DOM so i had to put "track ...
0
votes
1answer
27 views
How to read/repeat JSON data from AngularJS
I am pretty new to AngularJS so my apologies in that there are probably several concepts I am missing.
I'd like to take the following multi-level JSON string and parse/repeat the LastName elements.
...
0
votes
0answers
35 views
Set the value in html text box and dropdown with Angular JS
In html we use to write like this <input type="text" value="8">. I am facing two problems while I am doing it using angular js tags.
I want to set some value which I am taking from database ...
2
votes
1answer
27 views
how to clear or stop timeInterval in angular js?
I make a demo in which I am fetching data from server after regular interval of time using $interval Now I need stop/ cancel this .how I can achieve this .if again I need to start how I will start ...
0
votes
0answers
32 views
AngularJs filter throwing error in console TypeError: Cannot read property 'length' of undefined
I am trying to use custom filter in angularjs. The filter is working but its throwing errors in console.
Console:
TypeError: Cannot read property 'length' of undefined
at Scope.<anonymous> ...
3
votes
1answer
26 views
Angular ng-change delay
I have an input which filters a ng-repeat list on change. The repeat contains a lot of data and takes a few seconds to filter through everything. I would like their to be 0.5 second delay before I ...
0
votes
1answer
15 views
how to remove include module error in angular ?
I make a simple demo in my Pc which is working fine .But when I make fiddle to ask Question say
Uncaught Error: [$injector:nomod] Module 'myapp' is not available! You either misspelled the module name ...
0
votes
1answer
28 views
Dynamic variable into angularjs ng-repeat
Into a first loop, which i recover an id, i try to define other loop like this :
<ul ng-show="feed{{raterie.idFB}} === true" ng-init="var myFeed = myFeedFunction(raterie.idFB);">
...
0
votes
0answers
13 views
Nesting multiple ngForms for separation of form sections and for use in validating dynamic generated fields
I'm using a ngForm to validate dynamically generated form fields, using an answer I used from a previous question I asked, see Validation on dynamically generated form fields. Now, I'm working on a ...
0
votes
2answers
36 views
How in AngularJS ng-repeat get hold of item key? [duplicate]
Docs: https://code.angularjs.org/1.2.26/docs/api/ng/directive/ngRepeat
The ngRepeat directive instantiates a template once per item from a
collection. Each template instance gets its own scope, ...
0
votes
0answers
22 views
Masonry not working for multiple widths
I'm new to masonry with angular. i have tried to get masonry working with angular up to a certain extend and im facing few issues with it right now. Below given link is what i have done so far and the ...
0
votes
2answers
27 views
With AngularJS 1.2, wanting ng-repeater to not create line break
I've go to speaker names I want to output wrapped in anchor tags and I want to output them in the same line (no line break). When I do the code below, it wraps each in a which causes a line break in ...
0
votes
1answer
19 views
Enumerating data-targets in ng-repeat
I have an accordion in my HTML that is dynamically populated as such -
<div class="accordion">
<div class="accordion-panel">
<div class="accordion-heading>
<a ...
0
votes
1answer
25 views
Optimize AngularJS ngHide attribute
<span ng-hide="(getStatusIcon(inactive.currentStatus.code).statusDesc) =='Expired' ||
(getStatusIcon(inactive.currentStatus.code).statusDesc) =='Rejected' ||
...
0
votes
1answer
25 views
AngularJS - Dropdown Select values with ng-repeat
I have a select drop down with the following data; (This is also the output to the console in Chrome).
{
8: "Something",
9: "Something Again!",
10: "And again",
11: "And again!",
...
0
votes
1answer
36 views
angular ng-repeat toggle menu element
I have menu filled with $http method
<ul class="nav">
<li ng-repeat="(itemIndex, item) in menuItems.menu_items">
<a ng-click="showSubmenu(itemIndex)" ...
1
vote
2answers
17 views
How to display the keys value from a JSON array in an AngularJS application?
Question is: How do I get the league titles from the given JSON to show in #LEAGUE TITLE HERE#? Everything else works just fine, but I would like for it to show up in league categories. I appreciate ...
1
vote
1answer
43 views
AngularJS set ng-click function with scope variables within ng-repeat
I would like to assign different functions to ng-click within ng-repeat:
<button ng-repeat="button in notification.buttons" ng-click="button.fn"> {{button.label}} </button>
Controllers:
...
3
votes
3answers
55 views
How to properly execute a function inside ng-repeat
SITUATION:
I am making an app in AngularJs that assign permissions.
In order to do this i have three nested ng-repeat.
First loop: display PERMISSION GROUP
Second loop: For each permission group ...
0
votes
2answers
25 views
ng-model=“query” not working after connecting to Firebase
Part of a project I am working on is listing members, members companies, etc... I used $http within my controller to connect to a JSON file to get everything wired up and test functionality. I am ...
0
votes
1answer
34 views
Show icon in specific object
I am rendering a list using ng-repeat like this:
<div ng-repeat="pet in pets">
<h2 ng-bind="pet.name"></h2>
<i class="icon favorite" ng-class="pet.fav ? 'ion-ios7-heart' : ...
1
vote
1answer
46 views
Angularjs Nested ng-repeat with expression used in filter
I am trying to use a value from the first ng-repeat in a filter in the nested ng-repeat.
Specifically {{alpha.value}}. This renders fine in the first repeat, note the filter and the h3 tag.
However ...
0
votes
1answer
19 views
Generate a dynamic HTML id using Angular JS
I currently have a fairly simple table that looks as follows:
<table id="responseGrid">
<tbody>
<tr id="response" data-ng-repeat="response in data.responses">
...
1
vote
1answer
42 views
AngularJS: ngTransclude and access scope of ngRepeat
We are in the process of upgrading our application to Angular 1.3.0. In doing so, we ran into a few issues, most of which seem to boil down to the behavior of ngTransclude inside of ngRepeat.
We have ...
0
votes
1answer
17 views
Is There any way to know when all element that uses angular directives get compiled?
My question is very simples... Is There any way to know when all elements that uses angular directives get compiled?
Ex, i have this html:
<ul data-ng-controller="DemoController">
<li ...
2
votes
1answer
43 views
AngularJS - Deletion from list lags when using ngAnimate
I am using the ngAnimate module in my project to animate items in my list on a certain condition. The problem is if I use ngAnimate then deletion from list takes a little bit more time than without ...
0
votes
3answers
32 views
AngularJS - Using indexOf inside ng-repeat to show/hide values
I have a JSON file that contains a bunch of data:
myData.JSON:
{
"Addresses": {
"AddressList": [
{
"HouseNumber": 201,
"Street": "Victoria Lane",
...
0
votes
2answers
12 views
Changed bounded value depending on value in Angular
I have an ng-repeat over an array that comes from an $http request. I have a set up to present all details of th array on my site.
<div ng-repeat="i in data">
<h2 id="price">€ ...
0
votes
0answers
20 views
ng-repeat not working over an array of numbers [duplicate]
In this simplified example we have a complex object which has a numeric array loads in the bottom.
This code does not iterate over loads. So the line ng-repeat="load in value.loads doesn't do its ...
0
votes
0answers
40 views
angular validation on an associative array
I have a javascript object representing people and their roles. The roles are strings representing enums.
Here's an example:
{
"532":"Customer",
"545":"Employee",
"335":"Manager"
}
To ...
1
vote
2answers
45 views
How to implement a double animation in a ngRepeat? (move down the current items, fade in new item from right)
I am trying to implement the following animation: a list of items should move down the right amount of space for a new item to be added on top (variable height), and then the new item should move in ...
0
votes
1answer
28 views
AngularJS filter nested ng-repeat based on repeated object properties
I have an array of restaurant objects and I want to list them by grouping their cities
My object is like;
restaurant = {
id: 'id',
name: 'name',
city: 'city'
}
This HTML Markup can ...
0
votes
1answer
22 views
Using interpolated scope field names in form made with angularjs and ng-repeat
I need to produce a form using ng-repeat. The name of scope variable that I would like to have result of input to be located I am giving as one of parameters, so it has to be interpolated.
Plunker ...
1
vote
1answer
36 views
Collapse fails to update with dynamic ng-repeat
I have a simple collapse.
<ul collapse="isCollapsed">
<li ng-repeat="item in items">
{{item}}
</li>
</ul>
Here is the controller:
...
1
vote
1answer
27 views
Creating Checkbox functionality using Bootstrap Glyphicons
I have built a great set of bootstrap icons that act like radio buttons. I need to do the same thing bug with checkbox behavior allowing multiple options to be selected and stored. I can't seem to ...
0
votes
1answer
35 views
Angular js ng-options not able to set the value
I have started playing around with angular js and here is the problem with ng-option.
I have a below DOM structure, where i have used ng-option inside ng-repeat. And i'm declaring Main model in ...
0
votes
1answer
52 views
Sorting elements in an AngularFire array using a filter
I use Angular with Firebase and now stuck with error when trying to make a factory to work with filter.
app.factory('itemsFactory', ["$scope", '$rootScope', "$firebase", "simpleLogin",
...
0
votes
1answer
30 views
get sorted index on ng-repeat
I am using ng-repeat on an array of data where each value has 'type' of either 'chart' or 'table'. On the repeat the values are ordered so that charts appear before tables. I am adding a class for ...
-3
votes
1answer
43 views
AngularJS long list with ng-repeat perfomance issue
I have searched for an answer but haven't found one, how to solve a performance issue with angular?
Without third party libraries like:
A) ReactJs
B) other libraries...
export class ReportController ...
0
votes
1answer
28 views
Variable set in ng-repeat not being created
Following this question on how to determine number of filtered out elements, I created the following angular code:
<input type="text" ng-model="query" placeholder="Enter query...">
<div ...
1
vote
1answer
22 views
How to call function from view with selected from some select item as argument?
How I can achieve this?:
<select>
<option ng-repeat="item in items" value="item">{{item.name}}</option>
</select>
<a ng-click="foo(item)">Action</a>
Foo is ...
0
votes
0answers
16 views
How do i iterate collection in directive where controller passes iteration template with ng-transclude?
I am trying to create a directive that takes collection size and column size as parameter, and creates a layout using them. As i want this directive to be generic, i want to keep the logic in ...
0
votes
0answers
52 views
ng-table: Put data-title in a ng-repeat why doesn't work ? Another solution?
I use Jade and coffeescript in my project.
My jade code:
table.table(ng-table="videoTableParams", show-filter="true")
tr(ng-repeat="video in $data")
td(data-title="'Name'", ...
0
votes
1answer
23 views
submitting form with dynamic field in angular js
Functionality: when I do add resource in form A. The resource is displayed into form B. Then I need to submit the form B.
I am not able to submit it. Main reason is : all the fields which is shown in ...