The ngRepeat directive is a built-in component in AngularJS, and instantiates a template once per item from a collection.
0
votes
0answers
10 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
4answers
34 views
ng-repeat: access key and value for each object in array of objects
I have an array of objects and I am using an ng-repeat to iterate over them, which is easy. The array looks something like this:
$scope.steps = [
{companyName: true},
{businessType: true},
...
0
votes
1answer
34 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
25 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 ...
1
vote
1answer
31 views
Is it possible to run an ng-switch directly on a select > option
Has anyone been able to run an ng-switch on a <select> -> <option> tag, like so?:
<select ng-model="form.permitLocality" ng-switch on="localityTypeRadio">
<option ...
0
votes
0answers
19 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
34 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
3answers
19 views
Get JSON value from key value array with Angular
Hi I am new to angular and just trying to learn how to do a few things. I have got stuck in trying to display the following data. Using the Batarang plugin for chrome i can see my restful webservice ...
0
votes
2answers
40 views
In AngularJS, what is the correct way to filter an array based on odd or even $index property?
I want to filter an array based on even and odd $index property and I want to add odd elements in a separate div and even elements in another div, I could easily do this is JS or JQuery but I wanted ...
0
votes
1answer
30 views
Stop click event on input field within dropdown menu (AngularJS filter element)
I've got a Dropdown Menu with an input field to search my li elements. The problem is: Whenever I click into the input field to put in my search query, a click event happens and the dropdown menu ...
2
votes
2answers
43 views
ng-repeat's compile and link functions
I'm trying to understand the difference between compile and link function. In the angular documentation for the compiler it says
Some directives such as ng-repeat clone DOM elements once for each ...
0
votes
1answer
16 views
Angularjs and Jade ng-repeat nested issue
I am beggining to play around with Jade and I am having this weird issue. I'm sure it's something stupid, but been trying for one hour without success.
I have an object that contains groups, each ...
0
votes
2answers
24 views
Creating data templates in AngularJS
I have a list of products in my $scope. My products look like the following:
function myController($scope) {
$scope.products = [
{ id:1, name:"hamburger", image:"/img/hamburger.png" },
{ ...
0
votes
0answers
13 views
ng-repeat load new updated array model but do not clear the previous value of array in template
I have a list of articles, every article has a list of comments with user.name and user._id of that comment. Click to each user, it shows a chat box to send message to that user. Everything is ok with ...
1
vote
2answers
28 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 ...