Tagged Questions
0
votes
1answer
20 views
Weird Angularjs behavior with object into a service
I have a service that get an object defined into it.
app.factory('Store', function($http, $q){
var obj = {
data : [],
load:function(params){
var def = $q.defer();
var count = ...
-1
votes
1answer
27 views
Show/hide table rows based on dynamic content in AngularJS?
I have an HTML table as follows:
<table>
<tr ng-show="showCats"><td>Cat</td><td>1</td></tr>
<tr ...
0
votes
2answers
31 views
Bitwise Angular Expression not working
I have a basic ng-show expression as follows:
ng-show="((message.status & messageStatus.Spam) != 0)"
However, this fails with the following msg: "Token '&' is unexpected, expecting [)] at ...
3
votes
1answer
59 views
AngularJS - How to have items in ng-repeat exist before my javascript parses?
I have some initial static items and more dynamic items of the same kind are loaded in later in a never ending scroll-type situation. This works really well in my webpage without the initial static ...
0
votes
1answer
19 views
Angularjs ng-repeat race condition in setting dropdown value
I had the problem of getting resource data from an API, loading that into a dropdown select, and setting the selected value of the dropdown. Basically it was trying to set the value of the dropdown ...
0
votes
2answers
32 views
Why is the value not updated to the view from within a directive?
I have this html:
<form name="form" novalidate data-ng-submit="TradeDaysFormSubmit()">
<div data-ng-repeat="tradeDay in tradeDays">
{{ tradeDay }}
<br />
...
0
votes
1answer
21 views
angularjs ngrepeat not filtering by datepicker value
i am trying to filter rows based on date as an criteria.
Using the input type date as one of the search criteria, and filtering the rows based on the attribute name is not working.
ex - <input ...
1
vote
0answers
38 views
Filter module from external html file on Angular JS
I'm trying to filter a list (inside list.html) using:
<div ng-repeat="event in events | filter:filter | orderBy:order">
And I have a filter dialog inside my ListController
...
0
votes
2answers
31 views
Angular filter in ng-repeat model
I have a question about filtering in AngularJS. I would like to limit filtering in ng-repeat generated view only on visible items. Here is example of my situation:
I have a simple array ob objects. ...
0
votes
1answer
22 views
Using ng-repeat variable inside src attribute in angularjs?
I have the following:
div.container
script(src='/js/bootstrap/holder.js')
p.text-info(ng-pluralize,
count="devices.length",
when="{ '0': 'There are no ...
-1
votes
0answers
28 views
Conversion of complex for loop in JQuery to AngularJS [on hold]
I need to convert this jQuery code to full angular form. I get a list of objects as input:
//my code(Input: list)
for(obj in list){
//apply css to the object
//loop for finding its child ...
0
votes
0answers
18 views
Create the duplicate select drop down on button click
I had the span with select drop down in view like this:
<div class="modal-body">
<span><button class="btn btn-primary" ng-click="showAttributes=true;addAttributes()">Add ...
0
votes
2answers
30 views
Angularjs: greater than filter with ng-repeat
I'm applying a greater than filter to a ng-repeat tag. I wrote the following custom filter function:
$scope.priceRangeFilter = function (location) {
return location.price >= $scope.minPrice;
...
1
vote
3answers
60 views
AngularJS 'ng-filter' is very slow on array of ~1000 elements
I have a simple <input> search filter set up for a list of itemnames in AngularJS.
My list looks like this:
var uniqueLists = {
category1: ['item1', 'item2', item3' ... 'item180' ], // ...
0
votes
1answer
41 views
AngularJS ng-repeat not working?
I'm new to AngularJs and still trying to figure out how the basics work... I'm using the Soundcloud API to pull a list of followers for a given user. So far in my $scope.init function I am able to ...