Tagged Questions
0
votes
1answer
11 views
ng-repeat only displays final element
I am using ng-repeat in my html to display the title of each 'workbook' object in an array that is on the scope. For some reason, the third title is being displayed three times. There are three ...
0
votes
0answers
46 views
How Can One Make AN HTML5 Slider Acceptable on Desktop and Mobile [on hold]
I'm looking for a non-sucky slider I can drop in a form and have angular.js understand its change events. The low hanging fruit seems to be the HTML5 input type="slider". However, it is not ...
0
votes
1answer
68 views
How to have an angularJS directive on a page called via ajax?
I have the following html (which can be accessed directly or called via ajax):
<section id="content" ng-controller="setTreeDataCtrl" get-subthemes>
<dl ng-repeat="subtheme in ...
1
vote
1answer
21 views
Angular Js data comparison
How to Compare value while printing with AngularJS.
Like {{campaignOverview.TotalMailSent | number} > 0 }
Al i want to do is to compare the Total mail sent with 0 and the print "N/A" if 0 else ...
0
votes
0answers
37 views
AngularJS $location unexpected result
I am developing an web-app with AngularJS. (This is very unusual, but I have no choice in the matter.)
When a user starts my web-app (http:// HOST/develop/v3/), they are automatically redirected to ...
1
vote
1answer
18 views
$index, in Table, not sequential… angularjs
I have a table in HTML.
The rows are counted (via use of $index), and only certain rows are shown (via use of ng-show).
Problem: $index does not return the right count. The table's count should go ...
0
votes
1answer
37 views
Changing Arrays in Javascript from Input Tags
I have a 2D array that looks something like this:
var header = [A, B, C]
var allData = [
[A1, B1, C1]
[A2, B2, C2]
[A3, B3, C3]
];
Save ...
0
votes
1answer
44 views
How to remove models that are no longer bound to dom
I have a form that has a bunch of logic about which elements to show using ng-if. For example I might have a country drop down and if USA is selected it will show the state drop down which was ...
0
votes
1answer
34 views
Consequences of Custom HTML Tags in AngularJS Directives
Say I wrote a custom gravatar directive in AngularJS that is bound to an email property on the scope. The directive would replace this HTML …
<gravatar email="user.email" />
by a common img ...
0
votes
1answer
22 views
angularJS Custom Filter to pull out a particular value
I am printing out a list using ng-repeat in the following way :
<ul ng-controller="myController">
<li ng-repeat="somename in somenames">
<a>{{ somename.name ...
2
votes
1answer
59 views
AngularJS doesn't update img src when model changes
I use ng-src to load images. Value is loaded from some scope variable, like this:
<img ng-src="{{currentReceipt.image}}"/>
My issue is that when I run delete $scope.currentReceipt, it makes ...
0
votes
0answers
35 views
ng-include works for script partials, but not partials in a separate file
I copied the example of ng-include from the tutorial (http://docs.angularjs.org/api/ng.directive:ngInclude) but it doesn't seem to work. I tried defining the templates as script partials (as in the ...
1
vote
1answer
50 views
Background Image not working in IE8 in AngularJS
I have this simple HTML DIV with background, where Image is not showing up in IE8. It's working on all other browsers.
I am using AngularJS by the way.
The div is:-
<div class="slide"
...
0
votes
1answer
26 views
How to prevent a 404 error while AngularJS is loading?
I want to load the thumbnail of video
<img src="http://www.dailymotion.com/thumbnail/video/{{video.id}}">
But until AngularJS is loaded, I get a 404 error
GET ...
1
vote
1answer
83 views
AngularJS form validation not showing error message
I'm trying to do form validation with AngularJS but somehow the page won't show my required message.
Can anyone point me in the right direction what I'm missing at this time? I've just picked up ...