Tagged Questions
0
votes
0answers
6 views
Android 4.1.x Crash with AngularJS/Cordova 3.4
I've adopted some code that for the most part is fine, but there is one feature that causes a crash 100% of the time on Android 4.1.x (4.1.1 and 4.1.2, on an actual device and in an emulator) using ...
0
votes
1answer
24 views
redirect to different route when root url changes
I am developing an anuglar + nodejs app and run into this problem. I want to set up the following url mapping:
localhost:3000/ => node server serves index.html on server side and then anuglar serve ...
0
votes
1answer
14 views
Need guidance on rails with angular js
I have some experience with Ruby and basic java but not with any web development projects or javascript.
I want to learn Rails with Anugular JS. Given my background, can you please point me to some ...
0
votes
0answers
8 views
Angular ABN tree: how to select an element from code?
I am using ABN tree and I would like to select a particular element from code, primarily so I can implement a search function.
I tried setting the "selected" property on the relevant element. This ...
0
votes
1answer
25 views
angular js update json on interval and update the view
I've been trying to find a solution on the internet to be able to update my $http json request on a set interval time and at the same time have it update my bindings with the new data.
I've seen some ...
0
votes
2answers
24 views
Angularjs get request for a huge json file
I need to display some data from a database to the user. The data is in a json file and has a pretty huge size. The size of json file is roughly around 15MB. I created a service and used the promise ...
1
vote
1answer
24 views
Advanced AngularJS live Search
I have the following data
persons = [
{
"age":20,
"parameter1":94,
"name":"Foobarin"
},
{
"age":33,
"parameter1":49,
"name":"Johan"
}
]
I want to create an advanced live ...
0
votes
1answer
16 views
Directive talks to controller but cannot call functions residing in controller
I have a directive which needs to call functions from the Main controller but everytime i try to reference a function inside the directive nothing happens because it's undefined. When I access a value ...
1
vote
0answers
26 views
UI does not display anything when a method is being called
My setup:
I want to call a java method which accepts a string from UI and returns a JSON String. This method takes 5+ seconds to compute and return the JSON String. This method is not even being ...
1
vote
1answer
23 views
Parsing JSon data in AngularJS from $http call
I'm very new to both web development and AngularJS. I am trying to write a web page that will automatically update its info based on JSon files sitting on my server. I can get the json data but I ...
0
votes
1answer
20 views
Enable and Disable other items in ng-repeat with Angularjs
I have a list of user in my controller .
var app = angular.module('app',[]).controller('userList',function($scope){
$scope.users = [
{name:'A',family:'B'},
{name:'C',family:'D'},
...
1
vote
0answers
30 views
AngularJS: A slow java method is not being called from user interface
My setup:
I want to call a java method which accepts a string from UI and returns a JSON String. This method takes 5+ seconds to compute and return the JSON String. This method is not even being ...
0
votes
1answer
32 views
How do I disable the save password bubble in chrome using Javascript?
I need to be able to prevent the Save Password bubble from even showing up after a user logs in.
Autocomplete=off is not the answer.
I have not come across a post that offers a secure solution for ...
0
votes
1answer
19 views
How can an AngularJS html page set a href to use the context path?
I was thinking in a html file to write something like:
<a id="homeId" class="navbar-brand" href="javascript:document.write('${pageContext.request.contextPath}')">Root Page</a>
In the ...
0
votes
1answer
14 views
Call a function each time anothe function is invoked in Angular
I want to invoke a function, each time another function is invoked in Angular Js.
In the below code, each time checkAll() or uncheckAll is called, I want the function checkTotal() also to be called. ...
0
votes
0answers
16 views
AngularJS only first element in ng-repeat animates
For some reason using the code below, ngRepeat only animates the first item and displays the rest instantly. As soon as the scope.categories item is updated the ng-repeat is triggered in the template.
...
1
vote
2answers
30 views
Pass a variable between controller and use ng-repeat on same page
Some of my wording may be off especially regarding angular/js terminology (controller, service, factory, etc), but hopefully it is still understandable. Also, this question has multiple parts, which ...
0
votes
1answer
7 views
Setting up infiniteScroll in angularjs with default code
here is the link to the full code.
http://binarymuse.github.io/ngInfiniteScroll/demo_async.html#
I copied the code from infiniteScoll's website and it is still not working. The error I am receiving ...
0
votes
1answer
15 views
Angular & jQuery:horizontal scrolling a div from a controller or directive
I have an simple ng-repeat that is populating a large number of table columns inside of a wrapper with a overflow-x: auto style. The result is a horizontal scrollbar with a bunch of information like ...
0
votes
1answer
39 views
Angular controller promises and testing
Im writing some unit tests for my controller which uses promises.
Basically this:
UserService.getUser($routeParams.contactId).then(function (data) {
$scope.$apply(function () {
...
2
votes
2answers
34 views
Is it possible to change browser doc mode frequently?
I have a web application which is developed using angular js. We also have another legacy web app which is included in iframe in one of our pages. This legacy web app works only in quirks mode. We ...
0
votes
0answers
34 views
Which JavaScript SPA frameworks allow changes to <head> elements?
In a typical PHP, Python, Rails, etc., web app, like a blog or wiki, it is customary to use the templating language, not only for <body> elements but also <head> elements like, most ...
0
votes
1answer
17 views
AngularJS: how to make this ticker animation continuous and dynamically get element dimensions
This is my first AngularJS attempt, and I'm building a ticker of boxes
CodePen Here
Code:
index.jade:
doctype html
html(ng-app="ticker")
head
...
0
votes
2answers
19 views
angularjs ng-repeat one long unordered list
So in my current angular app my json structure looks like this:
0: Object
$$hashKey: "004"
Date: "2014-04-17"
Items: Array[3]
1: Object
$$hashKey: "005"
Date: ...
0
votes
0answers
16 views
Angularjs: how to revert back to the runtime loaded DOM elements in the previous view on going back (preserve state)
I have an angular application which has two views:
1) List view
2) Detail View
when you click on the thumbnail from list view you go to detail view, here is the route:
...
0
votes
1answer
7 views
Fix #tag inurl for a angluar js website?
Hello I am new to angular js, Currently my website url is like this
existing url :
domain.com/#/services
required new url:
domain.com/services
i.e, I dont want the # tag in the website url.
...
0
votes
0answers
16 views
Node Express Passport with Angular - not compatible?
I'm working on a simple web app running Node/Express on the server using Passport to authenticate via Google, etc. The client is using Angular.
I'm unable to get Angular to play nice with Passport to ...
0
votes
1answer
20 views
Accessing AngularJS model objects via an array?
I've got an interesting problem (to me at least).
I'm on a project where we are getting data from an API and its nesting a set of objects in an array. We want to be able to display/edit them ...
0
votes
2answers
23 views
Angular / Java Script - reference “class” properties before object is instantiated?
I have a c# background and I'm starting to explore Angular JS. And I am basing my factory classes/objects on this article: https://medium.com/opinionated-angularjs/2e6a067c73bc
so I have 2 factory ...
0
votes
0answers
11 views
Steroids/Angular Mobile App Switch Tab on Button Click
I am building a Appgyver Steroids/AngularJS Mobile App and I have 4 tabs that the user can visit. In one of the tabs, there is a button and if that is pressed, the app view should switch to a ...
0
votes
0answers
31 views
Is it safe to use AngularJS ~1.3.0 BETA in production environment? [on hold]
Is it safe to use latest AngularJS ~1.3.0 (BETA 5) in production environment or it's not recommended?
I need to use some new directives like input[date], but they are available only in version ...
1
vote
1answer
14 views
Binding to a function in AngularJS
I'm really surprised that the function binding below worked
<!DOCTYPE html>
<html ng-app="App" ng-controller="mainCtrl as main">
<head lang="en">
<meta charset="UTF-8">
...
1
vote
1answer
12 views
Call a function in angular js with its parameter
I am calling a funtion from below:-
<a href="#" ng-click="editExpense('{{expense.Expense.id}}')">Edit</a>
In inspect element i am getting the id is '12'. but in function below:-
...
0
votes
0answers
9 views
angularjs java and velocity app
I'm simply just trying to create an angularjs app inside my current java/velocity webapp that I have running locally. I am coming across issues where I am getting: Uncaught Error: [$injector:modulerr] ...
0
votes
1answer
18 views
Testing a simple service with $httpBackend
I have a simple service that I want to test. I'm using $httpBackend to mock requests. I'm having problems getting the mocked data back after the ajax call. I know its asynchronous. I need a simple way ...
0
votes
1answer
25 views
AngularJS - updating the model shared by different controllers
I'm just starting with AngularJS, building my first test web app.
I have several controllers that share the same model.
This is my model:
uxctModule.factory ("ModelData", function () {
var data = ...
0
votes
4answers
25 views
how to repeat option between a range in angular js [duplicate]
I want to print 2014-2050 in angular js. I have tried to find it in google and SO and i got below
<select class="form-control" >
<option ng-repeat="n in [2014,2015,2016, .. 2050]" ...
0
votes
1answer
24 views
Angularjs bind data to span text box
I have following span that I am using as a text input.
<span ng-model="sampleText" style="width:100px; padding:20px, 100px;" class="TextBox"></span>
Reason why I am using span instead ...
0
votes
2answers
36 views
custom orderby loop through nested array
my nested json is killing me, seem I have to write a custom filter to do orderBy
$scope.ranking = [
{
'uId': 2,
'name': 'Jeremy',
'tabs': [{
'tabId': ...
0
votes
2answers
36 views
Angular JS services $http and $q
I am learning Angular JS $http and $q services from Pluralsight Angular JS tutorial. I mostly created the eventData service that retrieves a JSON from the server using promise q. But when I assigned ...
0
votes
1answer
24 views
complicated custom sorting in nested array
I've problem sorting my nested array, says I've json like this
var orders = [{
'orderId': 1,
'sales': [{
'salesNumbers': 3
}]
}, {
'orderId': 2,
'sales': [{
...
0
votes
1answer
21 views
How to inject my service into my controller angular js
I am relatively new to angular JS and I have an issue with angularJS 1.3.0 beta build
I am trying to insert my service (a standalone module) to a controller.
This is my app Code
'use strict';
...
0
votes
1answer
20 views
Angular $scope not working as expected. Trying to assign object values in a controller $scope and a $scope.function scope
For context I'm trying to write some custom form validation in angularjs. I start with some default messages that accompany the fields. If error is false the message appears grey (normal informative), ...
-1
votes
0answers
32 views
orderBy angularjs with nested json
my problem http://jsfiddle.net/6eXs6/1/
I've nested json like this
var orders = [{
'orderId': 100,
'sales': [{
'salesId': 3,
}, {
'salesId': ...
0
votes
3answers
33 views
nested json to ng-repeat doesn't working properly
App demo : http://jsfiddle.net/TR4WC/2/
am I missing something? I looped twice to access the 2nd array
<li ng-repeat="order in orders">
<span ng-repeat="sales in ...
0
votes
0answers
16 views
What is the preferred “[e.g.] jQuery remainder” in [e.g.] AngularJS-based development?
(Note: I am presently referring to only AngularJS and jQuery; I'm not interested in whether other libraries or frameworks can do "jQuery remainder" work better.)
I've been working on a couple of ...
0
votes
1answer
29 views
Initiating directive from controller
I'm having trouble figuring out a way to initiate a directive once the data has been returned. I'm trying to build a report using html tables and ng-repeat. The report object is generated using a ...
1
vote
2answers
24 views
Angularjs removing dynamically generated rows
I have following html and Angularjs controller code to add rows dynamically.
<form name="{{form.name}}"
ng-repeat="form in forms">
<h2>{{form.name}}</h2>
<div ...
0
votes
2answers
40 views
generic functionality wrapped as a directive
I am attempting to write a directive that will sort arbitrary data at an arbitrary place in my application. Let us say I have the following code (based on actual real code, sort function and some of ...
0
votes
1answer
15 views
AngularJS select options maintaining content after selection and resetting to blank
Here is the current code (I didn't write it just trying to work with it)-
<select type="text" id="{{for}}" name="{{for}}" ng-model="model.value" class="form-control input-sm" ...