9,058 questions
1
vote
2
answers
9k
views
How to use ng-click in ng-repeat?
I am new to Angular JS and I am trying to use ng-repeat to generate multiple row in my table, and in each row there should be a button to trigger a function with different parameter
<div ng-...
0
votes
1
answer
11k
views
Cannot read property 'disabled' of undefined
I am having an angular JS application. In this I have a dropdown in which I can create a new option by typing and pressing enter key. However when I press enter key I get some JS exceptions
Here is ...
1
vote
2
answers
880
views
Ajax request with callback into ng-repeat element Angular.js
I am currently learning to code with Angular.js and I am doing a project where I load information with Ajax queries.
To make it short, I have three levels of data
-- Skills (competences)
--- ...
0
votes
2
answers
14k
views
Angular: Error: [$parse:syntax] Syntax Error
I want to create tooltips in an ng-repeat with angular-tooltips. The content of the tooltips has to be dynamically. What I already have is something like this:
View:
<div ng-repeat="region in ...
1
vote
1
answer
3k
views
AngularJS: $scope not updating view from second controller
I have an HTML file and a controller assigned via the $routeProvider like so
.when('/', {
templateUrl: 'views/contents.html',
controller: 'FirstCtrl'
Everything was ...
1
vote
4
answers
11k
views
How to add image in dropdown in angularjs
I am working on dropdown with image in angularjs, i tried many solution but havent get any success.
My combo data is coming in json format with three elements id , image and value.
These dropdown ...
4
votes
2
answers
2k
views
Angular: What do you do when you need to 'track by' but you don't have a unique property to track by?
Say that I'm ng-repeating over images, which is an array of objects that have a src and a caption property.
var images = [
{src: 'a.jpg', caption: 'a'},
{src: 'b.jpg', caption: 'b'},
{src: 'c....
2
votes
2
answers
735
views
Adding an active state to list item using angular
I have the following HTML markup:-
<ul class="dropdown-menu">
<li ng-repeat="track in songTracks track by $index" ng-class="{active: $index===...
1
vote
1
answer
55
views
Custom widget for visualizing dynamic table data
While creating a custom widget for visualizing dynamic table data, I encountered some issues and would like to share a minimal working example to illustrate the problem.
JS:
self.ctx.$scope.showAlert =...
1
vote
1
answer
66
views
In AngularJS, ng-repeat breaks the options into options again
My red JS array is ["standard", "premium"]
When I click on the dropdown option for the first time, it’s showing option as standard and premium. After choosing any one of them, the ...
1
vote
0
answers
64
views
How can I fix the slot ng-repeat so it will display the areas for the selected block?
I am trying to display the areas for the selected block, the wizardStep is the parent controller and the optionSelector is the child controller. I am sending the selected name and value of the ...
0
votes
0
answers
69
views
ng-repeat disable other repeated HTML Attribute
I am using "ng-repeat" to display 3 elements => Radio buttons- Yes/No, "Save" & "Cancel" buttons.
Objective of this question is to Enable only 1 HTML Attribute at ...
1
vote
2
answers
2k
views
Using multiple ng-models in a single ng-repeat
I'm trying to get multiple values selected from a checkbox list generated using ng-repeat in Angular
<div ng-repeat="item in items">
<input type="checkbox" ng-model="...
1
vote
1
answer
69
views
Hide a div generated dynamically via SCSS
I am working on hiding certain elements of an Angular page. I cannot change the source code, however I am able to upload an SCSS stylesheet which is applied to the page. The page I am working on has 2 ...
0
votes
1
answer
34
views
Set background color of table column with AngularJS
I would like to set the background color of a table column with AngularJS.
I found an example without AngularJS:
$('td').hover(function() {
var t = parseInt($(this).index()) + 1;
$('td:nth-...