Tagged Questions
AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability and reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.
0
votes
0answers
17 views
counting the number of ng-options in ng-show
I'd like to show a "select" tag only if there is more than one option.
Here is my select :
<select ng-model='nodes[$index+1]' ng-options='key as key for (key,value) in simpleTypes[$index]' ...
-1
votes
0answers
17 views
Re-use data from a 'closed' ng-repeat
Ok, so I basically have a table where I need to use ng-repeat. I'd like to use data retrieved from my first ng-repeat in the second (the index). But unfortunately, I can't access it when my is ...
0
votes
0answers
7 views
Pass plain value to model Select2 angular-ui
I use select2 from angular-ui, everything works ok, but it passes to ng-model object and I need to get plain value
this is in controller
$scope.units = {
...
0
votes
0answers
9 views
Navigation inside bootstrap modal
I want to navigate in a bootstrap modal.Suppose that I open a modal and I have a button in this modal that navigate me to another page that opens in this modal.How I should implement this Scenario in ...
0
votes
1answer
7 views
Binding an angularjs custom class directive to a SVG element
I'm trying to bind an angularjs custom class directive to a SVG element. The following plunker illustrates the core of my problem: http://plnkr.co/edit/J4YafmSk6t7DScMRda4I?p=preview
As the console ...
0
votes
2answers
16 views
apply css on ng-click dynamically angularjs
I have an Object like this
var obj = [{'id':1,
'color':'#ff0000',
'name':'final'},
{'id':2,
'color':'#ffff99',
'name':'start'}];
By using ...
0
votes
0answers
1 views
Isolating Kindle Fire SILK Javascript error?
I have an AngularJS / Rails 4 page with a few thousand JavaScript LOC, which runs fine on IE9-11, Chrome, FF, Safari in raw or minified form using the standard uglifier gem. Oddly the page runs fine ...
-2
votes
1answer
7 views
NgGrid not working
I am unable to see the nggrid populated after the Rest Call.
Can you please look at the plnkr and suggest changes to make it work? Thanks
http://plnkr.co/aKbiu1QqODZTDnanhDbR
1
vote
2answers
17 views
Angularjs: Can't add class to ID
Got a little situation here.
I'm just learning Angular and I'm stuck with the following problem.
I've a list that repeats itself (ng-repeat) and when it is rendered, you can click on it and I add a ...
0
votes
0answers
3 views
How to return angularFire $on value in angular services?
I have following code in a controller. This code get the current user's task list.
I want to pack this into a angular service so I can call this easily whenever I want in any controller. example ...
0
votes
0answers
13 views
Abort AngularJS $http request, deeply nested in multiple service calls
I'm using a deferred promise to abort a $http request (like explained in this post).
However, I'm unsure of how I should propagate the abort() function added at the root level. Everytime I call ...
0
votes
0answers
9 views
How to unregister/destroy angular js modules
I am trying to develop an application (Play Framework) which consist of sub projects. Main project and sub project both have angular framework in them.
I want to unregister/destroy angular js ...
-1
votes
0answers
11 views
Posting data with Angular.js
I'm using angular.js with asp.net mvc application. I have this model
public class DocViewRoleInfo
{
public int DocViewRoleID { get; set; }
public string DocViewRoleName { get; set; }
...
0
votes
1answer
9 views
Mock $http request using Jasmine
I have the following http request in my angular-js based app.
$scope.List = [];
$scope.GetList=
function () {
$http({
method: 'GET',
url: ...
1
vote
1answer
29 views
angularjs directive not working (strange issue)
This is my app.js code (main js)
var currentUserId;
window.myApp = angular.module('myApp', ['ajoslin.mobile-navigate', 'ngMobile',
'myApp.Registermdl',
'ngProgress', 'myApp.login', ...
2
votes
2answers
13 views
AngularJS - Issues with references when using services and ng-repeat
Im finding myself fighting with 'pointers' in javascript. It's like I'm in C++ again. I would like to know your approach to the following issue Im having.
My case: I have a ng-repeat that goes over a ...
0
votes
1answer
21 views
Why does not returning null in a $timeout function causes a memory leak?
I've found that supplying angular's $timeout with a function the doesn't return null, causes a memory leak:
function foo() {
// Do stuff
$timeout(function() {
foo();
return ...
0
votes
0answers
7 views
Signalr invode not return output xml, angularjs
For SPA have to use angularjs, signalr. Signalr call require xml as a input parameter based on input xml, output xml will return which I have to parse and get essential data.
Parse data contain ...
0
votes
1answer
18 views
File uploading in a local drive with angularjs
I'm beginner in angularjs.
I read a lot about file uploading and etc.
But couldn't find any topics for this case that i will describe in further.
I want to choose a file with helping of a button(with ...
0
votes
0answers
10 views
Angular-Translate: Translation does not show up on random browser refershes
I have a separate language json file for each partial/controller. To avoid loading all the json files at once, I have added the addPart statement in the controller instead of the module config:
...
0
votes
1answer
19 views
AngularJS loading image directive setTimeout IE 10 issue
The problem: When the user load the page, some images on it are still processing (basically the urls are already known by the images are not there yet).
The solution: I've created the directive to ...
-1
votes
0answers
10 views
Angular JS Touch and Swipe
I am very new to angular JS and working on a mobile application. As a part of it, I need to write a service that handles touch events like swipe-left, swipe-right, swipe-up and swipe down and I need ...
0
votes
0answers
11 views
Angular v1.2 animation for images
I have been going through tutorials and past questions, trying to figure out where my code is going wrong for applying an animation to the transition of the images I am trying to display.
ng-show ...
0
votes
1answer
25 views
Difference between defining isolated scope variable for angular directive in {} and in link
In angular directive, I know I can assign isolated scope, but I need to add '=' or '@' or '&' to define variable in {} while I don't have to do that in link, for example:
scope: {
foo:'=foo',
...
0
votes
1answer
15 views
TypeError when using $resource in Angularjs
I've got a weird error in angularjs. I've used $resource module in angularjs to make rest requests by registering this service
$provide.service("CustomerService", ['$resource', function ($resource) {
...
1
vote
1answer
7 views
ui-router with multiple views on an abstract parent
I am trying to create a route hierarchy with ui-router, and I am having issues.
I have three layers of templates: guest template, user template, admin template. So my index.html page is:
...
0
votes
0answers
27 views
Apple push notification - one message received but 2+ alerts
when i push a notification to ios device, one message is received but alert pops up 2+ times. (ios 7+)when notification pushed to android device, everything is normal. 1 message received, 1 alert.
...
0
votes
3answers
18 views
parseInt not converting multiple string to int
it was a very simple but don't no why i can't solve it.
I am trying to convert string to integer from json, it converts 1st object but from second object it doesn't:
HTML:
<body ...
-1
votes
2answers
22 views
AngularJS tutorial isn't reading expressions
I'm trying to do the AngularJS tutorial here for v1.2.12, and what I'm getting on my localhost is much different from the live demo they have on the tutorial itself.
Mainly, just starting with the ...
0
votes
0answers
9 views
Phonegap/Cordova App display too big and event not work in some device
My Phonegap/Cordova + Angular JS app looks fine with the setting below, on devices like Lenovo A369 i , Sony Experia M ,Samsung S3 ,etc .
<meta name="viewport" content="user-scalable=no, ...
2
votes
1answer
29 views
Tree like menu from json and drag and drop
I am trying to build web application like easyquerybuilder. i have done all the layouts.but stucked here in which technology i have to use for this..
whether i have to use angularjs or jquery ui or ...
0
votes
0answers
24 views
Can't get Angular animations working
First time trying to use angular animations and can't work out what I'm doing wrong.
I'm using AngularJS v1.3.0-build.2805 for both Angular itself and Animation module.
-1. Module is included
...
-2
votes
1answer
26 views
Add JSON Objects in AngularJS
So I'm pulling some JSON with AngularJS using this
$http.get('/balance').then(function (response) {
$scope.balance = response.data;
});
and the response.data is this
{
"pending": [{
...
1
vote
0answers
7 views
How to debug what appears to be long pauses between GC events in Chrome Javascript
I've been trying to optimize an angular site, and I'm getting a huge amount of delay in the responsiveness of my page when switching between certain routes. Each page displayed is not massive, but it ...
0
votes
0answers
19 views
AngularJS Dynamic accordion and html form
I have an accordion and it has an HTML form, then when add button is click it will add another accordion and have the same HTML form in it, how can I accomplish this.
I am thinking a script template, ...
0
votes
0answers
24 views
How to render Same partial html file with different data using ngView at same time
I have created a page which displays the customers information like
Customer ID Customer Name
1 ABC
2 DEF
Now I have a partial 'customerinfo.html' which displays ...
0
votes
1answer
12 views
How can I digest my Angular directives inside my sanitized HTML string? | AngularJS
I'm having trouble recompiling Angular code found in my $scope.content object after it is inserted to the DOM via ng-bind-html-unsafe. Anyone know how to have Angular digest this code?
Thanks a ton ...
0
votes
2answers
36 views
How to detect if the value of a property in an JSON Model is changed with a given value in AngularJS
I have a given json model named "entities" for example:
var entities =
[{"name":"Test1","isDirty":false},
{"name":"Test2","isDirty":false},
{"name":"Test3","isDirty":true}]
I need to show the list ...
0
votes
1answer
16 views
AngularJS weird error when creating simple directive
I'm trying to create simple directive in angularJs and don't understand why the code below gives me following error:
Error: [$compile:tplrt] ...
0
votes
1answer
14 views
how to display tooltip in ngtable?
I am trying to get a tooltip in my ngtable and using this code:
http://embed.plnkr.co/v6bqqe/index.html
My ngtable looks like this:
<table ng-table="tableParams" class="table">
...
0
votes
0answers
20 views
How do I setup an angularjs app on karma and nodejs
I would like to have a workflow for an angularjs app that uses mocha,chai instead of jasmine
I'm fine with setting up the bare project
npm init
npm install karma-mocha etc..
Is there a node way to ...
0
votes
0answers
12 views
Angular tests: How to expect element events to be triggered?
I'm decorating forms like this:
angular.module('Validation').directive('form', function() {
return {
restrict: 'E',
link: function(scope, element) {
var inputs = ...
1
vote
1answer
18 views
Clicking on Angular UI Bootstrap Radio Buttons
I'm trying to use the radio buttons implemented in UI Bootstrap firing a function by including a ng-click on the button. Apparently the radio button variable updates after the function has been ...
0
votes
2answers
12 views
Directive custom control
I am trying to create a directive as custom video control. I loading an html file to templateUrl of this directive. The problem is when there are more than one controls, they have the same src file ...
0
votes
1answer
13 views
Anchor tag href attribute incorrect in IE11 during ace editor change event
See the following fiddle: http://jsfiddle.net/R3VbC/4/
In the example fiddle, I run the parseHref function when the ace editor's value changes. This in turn passes a string to an anchor element which ...
0
votes
1answer
5 views
AngularJS - change templateUrl if routeprovider starts with certain text
I have this code:
var app = angular.module('TabsApplication', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/search', {
...
-1
votes
0answers
12 views
Popover directive angularjs containing urls which on click opens in new window [on hold]
Hi I am quiet new to angularjs, but like experimenting with it, Recently I tried creating a popover directive in angularjs which has the url links which on click should open in new window.
The issue ...
0
votes
1answer
16 views
ngForm not work in web application, but does in jsFiddle
I am trying to use the $invalid properties of ngForm to disable a submit button in my app. For some reason, the FormController instance that I should have access to after the <form> is created ...
1
vote
0answers
8 views
iScroll breaking scrolling altogether
I've got the latest version of iScroll 5 included with my mobile web app, and ng-iscroll 1.2b. For some reason, enabling iScroll on a wrapper will simply disable scrolling completely, with no bounce ...
0
votes
1answer
11 views
Connection state with doowb/angular-pusher
I am trying to build an Angular project with Pusher using the angular-pusher wrapper. It's working well but I need to detect when the user loses internet briefly so that they can retrieve missed ...