AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Whatever(MV*) capability and reduce the amount of JavaScript needed to make web applications functional. These types of apps are also frequently known as Single-Page Applications.

learn more… | top users | synonyms (2)

0
votes
0answers
5 views

angularjs background issues. large gap between background and footer. Image resizing doesn't change anything

Hi I'm trying to set a background image for an angularjs website. I've followed quite a few tutorials/examples. They do work. However I want my background image to be set in the bottom of the page ...
-2
votes
1answer
10 views

linear json to tree array for generatign angularjs abn tree

current output: [ { "prg_map_key": "138", "capability_name": "capability 1", "capability_key": "13", "service_name": "service 1", "function_name": "function 1", ...
0
votes
1answer
14 views

$q service - should I use CommonJS-style or constructor-style in new AngularJS application?

AngularJS documentation for $q service says that $q can be used in two fashions - constructor-style and CommonJS-style, see https://docs.angularjs.org/api/ng/service/$q Nevertheless, it doesn't ...
0
votes
0answers
10 views

select control loses all options after ng-select

I have a select box like this... <select class="form-control m-b" ng-options="portfolios.id as portfolios.product_name for portfolios in portfolio" data-ng-model="portfolio" ...
0
votes
0answers
8 views

get user location lat long on cordova without enable their location

I am making mobile (Android, iPhone and WP8) app in cordova with angular. I need to take users lat, long. I used http://ngcordova.com/docs/plugins/geolocation/ and HTML 5 geolocation API and angular ...
0
votes
0answers
18 views

Parse HTML fragment with AngularJS

I have a part of a screen that is retrieved dynamically through AJAX, and replaces an existing part (think about a paginated grid, that when you click on "next" you get a new HTML table than replaces ...
-1
votes
2answers
36 views

how to use JSON Parser?

I am trying to acces pic field but i am getting like [object object] here is my data details---------------{"_id":"54c72d2d5d76ab781f3fea08","displayName":"test ...
0
votes
0answers
20 views

tab and tab-shift in Chrome

Im experiencing a weird bug that apparently only appears in Chrome. I have a list of input fields and selects where i have set a tabindex: <input type="text" class="form-control ng-pristine ...
0
votes
1answer
8 views

Encrypting in JS and decrypting in Java - errors

I have a usecase where I need to encrypt in JS and decrypt in Java. I've tried 2 approaches: Based on the this library in github For this case, I'm getting a javax.crypto.BadPaddingException: ...
0
votes
3answers
33 views

Unable to Set Selected Value Of DropDown In angularJs

I have a DropDown. I'm binding It's Value using ng-repeat on Option. I want to Set the selected value using the value field only . This is My code. <div ng-controller="myCtrl"> ...
0
votes
2answers
17 views

Angulajrs - how to set bootstrap tab active

I have a tab pane in a modal. Each time I open the modal I want the first tab to be active. My problem is that if I open the modal, go to the second tab and close the modal, next time I open this ...
0
votes
2answers
27 views

How to get variables value outside $http.get?

New to angularjs. I have a simple controller which reads a json file using $http.get. Inside get I am assigning some values to variable $scope.testTotal. But they revert to default value when exiting ...
0
votes
2answers
20 views

AngularJS password validation

i'm learning from tutorial "Creating Apps With Angular, Node, and Token Authentication". And i've stuck. I found this code there: html <form name="register" class="form-signin" novalidate> ...
0
votes
0answers
4 views

Protractor click hidden element “ RangeError: Maximum call stack size exceeded”

I'm having an issue with trying to click a hidden element in a Protractor test. Below is the error message that is being returned, as well the code snippet that is causing the error message. Any idea ...
0
votes
1answer
23 views

ng-show is not updating my view

I saw many of those issues on the Internet but none of them seems similar to what I did... Or maybe there is the same behavior but I don't know where it happens. On every site I went it seems that if ...
0
votes
0answers
8 views

Restangularize element - do not update `route` after save

I have same code: var user = Restangular.restangularizeElement(null, {}, 'users'); user.email = "[email protected]"; user.save().then(function(data) { console.log(data); data.save(); // just for ...
0
votes
1answer
11 views

Testing Angular controller and spying on a mocked service

So I'm learning how to test in Angular and followed a tutorial that showed how to mock out the services that your controller uses. Can't seem to figure out why it isn't working so I'm turning here for ...
0
votes
0answers
23 views

how to recompile ng-repeat list after every collection change

Hi I have a directive that compiles another custom directives (dynamic element) function htmlinsert($compile) { return { replace: true, scope: false, link: function(scope, element, ...
0
votes
0answers
8 views

Directive unit-testing document mouse listeners

In a directive, I am binding a listener to mouseup event on $document imported using dependency-injection. It works well in the browser but when I try to unit test it, I come to some problem. ...
1
vote
2answers
12 views

Use data stored in $scope in DevExtreme Widgets

My code right now is very simple. In my script.js I have : var myApp = angular.module('myApp', ['dx']); myApp.controller("defaultCtrl", function ($scope, $http) { ...
0
votes
1answer
16 views

Angular get in-between indexes after orderBy

As you know after orderBy table loses its ordering and the $index value is from the sorted array, not from the original array. So if you pass an items array ['orange', 'banana','potato','apple'] to ...
0
votes
0answers
9 views

Angular JS incerceptor / Laravel App::abort(403)

I'm trying to intercept an error response from Laravel with Angular JS interceptors. This is my php: Route::get('/test', function() { App::abort(403, 'Unauthorized'); }); This is my ...
0
votes
4answers
29 views

AngularJS Ng-Repeat not iterating items in $Scope

I'm currently trying to read a Json array of objects from my Employees API, which is returning the following, [ { "Id": "00162c3a-2b70-4f50-80e8-6fee463cffdb", ...
0
votes
0answers
36 views

Data is not populated in the dropdown

I am using ui-grid for creating a grid. I want to display a dropdown in one of the column of it, so using cell template for it. var subGridCols = [{ name: "cpu", displayName: "CPU" ...
0
votes
0answers
5 views

Jasmine TimeOut error

I am writing a karma unit test script. Everything looks fine but i am getting error: Chrome 39.0.2171 (Windows 7) Unit: common.services.PartialUpdater Should be loaded with all dependencies FAILED ...
0
votes
0answers
8 views

Data from socket factory (AutobahnJs) in controller Angular JS

I have socket factory with using AutobahnJs. app.factory('socket', ['$rootScope', function($rootScope) { var pubsub = new ab.Session( 'wss://site.com:62315', function(session) { ...
0
votes
0answers
25 views

How to link dynamic array to DOM layout in angular directive?

How to control grid elements array in directive to display them in right grid cell? For now I can assign this elements in directive but they aren't displayed in the DOM. If you run example in ...
0
votes
0answers
17 views

Bootstrap popover-keep in DOM

I have an bootstrap popover which contains two checkboxes. The code for it looks like this: $('#filter').popover({ title: "Preferences", container: "body", html: "true", placement: ...
0
votes
0answers
5 views

Google Maps InfoWindow adding Button

How to add ons ui button to info window Using Angular JS button with proper designing and how to get the button in file like $scope.showDetails(){ alert('Welcome'); } My code is var ...
0
votes
2answers
14 views

Define any conditional in a ternary operator

I want to change the colors of my cell, so in my table i do this on my td data-ng-class="{selected.id == price.id && !price.isMinPrice ? 'selected' : '', selected.id == price.id && ...
0
votes
0answers
25 views

In angularjs, calling controller as constructor is not working

i am new to angularjs and i tried practicing some examples. In the below stated example I am trying to initialize a value and setting it in scope. it is working fine, if i initialize the controller ...
1
vote
1answer
16 views

angularJS routing: unnecessary params in url

In my app if i recieve password reset instructions i go to server with url like: /changepass?key=1231231231212312 in controller i have such code: if (typeof $routeParams.key !== 'undefined') { ...
0
votes
1answer
17 views

Angular factory function not reached.

I'm learning how to use Angularjs with ROR through this tutorial https://thinkster.io/angulartutorial/angular-rails/ I've come to a point where when I'm adding a new function for a service which is ...
-1
votes
0answers
28 views

how to read input text value used in ng-repeat

Hi I have table to show some product information from mysql DB. I have used ng-repeat to show data in table. One of the column is for quantity where user can input the quantity. based on the quantity ...
0
votes
0answers
8 views

Is there any maximum nesting level for angularjs directives

I have next directives: schema, record, field and type. In the view I am using schema directive which in template contains record. Inside record template there is usage of field directive and inside ...
0
votes
2answers
25 views

Directive to allow decimal numbers with only 1 decimal point

I have an angular application where an input field should allow only positive numbers with one decimal point. In my directive I am replacing anything other than 0-9 and '.'.But currently my ...
0
votes
1answer
13 views

How to use AngularJS promises with Cordova Camera correctly?

I am having a series of functions that need to be executed in a synchronous order. One of these function is to get a picture using the Cordova Camera library from the phone of the user. Another ...
0
votes
1answer
39 views

How to use a angular variable as a parameter in JavaScript function

I'm trying to use an angular variable as a JavaScript parameters like this: <li ng-repeat="link in Links"> <button data-icon="gear" data-role="button" data-iconpos="right" type="button" ...
0
votes
3answers
31 views

Defer and Promise in angularjs not working properly

I have now problem with defer promise in angularjs. Here is my code: var defer = $q.defer(); defer.promise //First Execution .then(function () { ...
1
vote
1answer
21 views

change ng-class based on click

I want to change the class of an element when the user clicks on another element. first of i have this span: <span class="yesterdaysValue">{{category.content.Value}}</span> second of i ...
0
votes
1answer
9 views

Angular / Karma: unknown provider

I am new to testing in Angular and finding difficult to understand how to do a simple test on my controller's injections, getting the error: Error: [$injector:unpr] Unknown provider: ...
0
votes
0answers
15 views

angularjs typeahead filter to remove accents

I have the following simple typeahead: http://jsfiddle.net/76qbsn6L/ <input type="text" ng-model="query.string" typeahead="fuser.name for fuser in autocomplete | ...
0
votes
2answers
21 views

On updating an image url the image doesn't get rendered on frontend

I have written a directive that renders screenshot of a page, if a screenshot is available else it shows a placeholder. commonDirectives.directive("showScreenShot", function () { return { ...
0
votes
1answer
41 views

Function can't see change in array

I got this two functions Function 1 $scope.selected = []; $scope.selected.project = ['name:test, id:1']; $scope.selectedFs = function($item, $model) { $scope.selected.project ...
0
votes
0answers
20 views

validating radio button group in AngularJS

In my form with tag <form name="applyform" ng-submit="processForm(applyform.$valid)" class="form-horizontal" novalidate> I have a radio button group, one option selected is required. I'm unable ...
0
votes
1answer
20 views

Convert/map inputs of date (day, month, year) into java.time.LocalDate

This is what we have in the interface: I pasted the parts of the code what I thought that are relevant, but maybe something more is required. How it works When the button is pushed, the ...
-3
votes
1answer
26 views

Hiding individual divs in ng-repeat loop

I have a ng-repeat loop, which displays individual panels (one for each loop iteration). In each panel I have a 'mark as read' button that has a ng-click event. I want to be able to hide the panel ...
0
votes
0answers
6 views

Busboy doesn't fire 'field' event

I get the file event of the formData but busboy doesn't fire the other field event. Can someone take a look? I'm using the newest version of node and busboy. The formData is posted via xmlhttprequest. ...
1
vote
2answers
44 views

Can not call Mvc Controller Action from AngularJs Controller with parameters

I am trying to call my Mvc Controller Action from Angularjs controller $http.get(). Please provide some solution. Controller Action : [HttpGet] public string CallMe(int number,string name) { ...
0
votes
1answer
27 views

issue with grid using ng-repeat

I'm trying to implement a grid like layout using ng-repeat. When the list is having empty data grid is getting alignment issues. I'm not getting where I've gone wrong. please help me solve this. JS ...