1
vote
2answers
71 views

How to achieve pagination/table layout with Angular.js?

Let's say I receive an object literal with 15+ objects and I need to display them in a nice layout (not all in a row), what is the most efficient method for controlling when the line should break/page ...
0
votes
1answer
77 views

AngularJS Directive for decimal numbers between 0 and 1

I want a directive in AngularJS which should allow decimal numbers between 0 and 1. In addition, it can allow "-1" as well. For eg: -1 is valid 0 is valid 1 is valid 0.12 is valid 0.99 is valid ...
1
vote
1answer
106 views

How to update $scope.items array order in response to user re-sorting the DOM array using Angular-UI ui-sortable directive

I am using ui-sortable directive (from angular-ui ) in the view <ul ui-sortable> <li ng-repeat="item in items" > {{item.property1}} {{item.property2}} </li> ...
0
votes
0answers
84 views

AngularJS ng-repeat not working with DatePicker controller

I can't seem to get the inlined calendar button associated with the DatePicker to work using ng-repeat on two DatePickers. They both work when I instantiate the DatePickers separately, but I wanted ...
2
votes
2answers
202 views

Challenge repeating tr with ng-repeat

I'm struggling with a special use case. I provide you with a jsfiddle snippet at the bottom. 1. The HTML table My HTML is a table. ng-repeat directive must be applied to an html element. In my use ...
0
votes
2answers
106 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 ...
0
votes
0answers
125 views

eliminate duplicates in the drop down menu using angular ui unique

hi i have an api that takes its value from db. In my api i have a drop down -menu and i have certain categories like food , healthcare and in the drop down the categories gets repeated what should i ...
0
votes
0answers
112 views

Add ng-model to a dynamic directive

I'm trying to create a dynamic directive in an ng-repeat using this code: app.directive('element', function($compile) { return { restrict: 'E', link : function ...
0
votes
1answer
155 views

Select a Directive Dynamically in AngularJS

I have a couple of directives and I want to select each one for the result of the ng-repeat. <div class="{{field.type_desc}}" ng-repeat="field in row.fields"></div> and this is the ...
0
votes
0answers
194 views

Angular UI, Unique not working

So i'm trying to filter my ng-repeat directive by using angular unique module.. but i'm kinda lost, i followed the exact order with adding the scripts... In console i'm getting an error, 'No module: ...
0
votes
1answer
86 views

Adding elements to accordion headings with angular

In the angular application I'm working on, I need to display some data with an accordion and add a button or some other kind of marker to each heading. Here's an example of what I'm after using the ...
0
votes
3answers
260 views

Binding with radio's not working in Angular

Using ng-repeat I display some radio's in the edit form: <label style="float: left;margin-right: 3px;" data-ng-repeat="gender in genders" data-ng-hide="$first"> <input type="radio" ...
1
vote
1answer
252 views

ng-repeat and select box filtering

I have an article list and categories. All I need is updating the article list based on selected category. I can populate the list with all the articles, I've no problem on that part. But I could not ...
2
votes
1answer
1k views

What is the preferred way of lazy loading data for an ng-include in Angular?

I create (parent) rows when looping through a list of objects using ng-repeat. I also create a hidden row. The visible row contains soms basic data and the hidden row (detail) contains all the data. I ...