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 applications are also frequently known as single-page ...

learn more… | top users | synonyms (2)

0
votes
0answers
3 views

Angualr datetimepicker directive issue getting value

I want to get bootstrap datetimepicker input value in angularjs controller. I am using following custom directive to achieve this . But i am getting the value is undefined. I have added the code ...
0
votes
0answers
5 views

Webpack websocket devServer proxy. Few minutes delayed init

I am using webpack to serve my angularjs frontend app. It connects to backend via websockets (and http too) to fetch data: new WebSocket("ws://" + location.host + "/api/items") Calls to backend are ...
0
votes
1answer
8 views

Get the value of all checkbox when checkall checkbox is checked

I'am new to angularjs, I'm creating an application of attendance. When i check the checkall checkbox all the checkbox of name is also check and What i really wanted to achieve is to get the value of ...
0
votes
1answer
7 views

Module 'algoliasearch' is not available Error

I am trying to create a Instant Search Prototype using Algolia AngularJS module . I am using an app generated via jhipster (Micro Service Gateway) which uses Angular JS v1.x. However when I launch my ...
0
votes
0answers
12 views

Add minimum height when scrolling to top functionality

I have this JS code which scrolls to the div whenever clicked. However it shows the DIV at the top. This creates a problem since I have a fixed header which is 90px in height and the div goes behind ...
0
votes
0answers
10 views

How to change pages when user types in characters in search bar

I'm trying to replicate a Google-like search bar where when a user types in a question it changes the screen to a new screen. So for an example, I have a simple input type search bar in HTML. What I'm ...
0
votes
0answers
9 views

AngularJS 1.5 (with components): View change depending on routes

I am familiar with the way routing works in angularJS 1.5. In the original router we go with ng-view directive, so we have some common view part (common template) for all the views and then we use ng-...
0
votes
1answer
16 views

AngularJS Filed nested array of objects with array of objects

I'm trying to filter a nested array of objects with my own objects, by idSubject. But I'm not getting the right result. I have articles (which have subjects) And a array of objects (which are the ...
0
votes
0answers
2 views

ionic build android show this error * Try: Run with --stacktrace option to get the stack trace

i was already installed sdk, and also add JAVA_HOME but why show this error, when i write ionic build android?? You have not accepted the license agreements of the following SDK components: [Android ...
0
votes
0answers
14 views

AngularJS - Why ng-value overrides value attribute and how to avoid it?

So, I have the following code: <input ng-model="refreshedByExample" type="text"> <select ng-model="example" ng-change="refreshedByExample = example"> <option value="1" ng-value="...
0
votes
0answers
9 views

Angular 2 Router Variable

Can I get the value from :demoid variable in path and place it inside loadChilren? I want to load any modules dynamically by :demoid. Is it possible? RouterModule.forChild([ { ...
0
votes
0answers
5 views

Protractor throwing exception in synchronization between angular and non-angular

We are developing a protractor jasmine framework for testing the angular part of our application. When we run the script the protractor switches from non-angular to angular without any problem, ...
1
vote
3answers
20 views

AngularJS - select tag - getting attribute from option when selected

So I have a select tag that shows some options and I wish that when an option is selected it takes the data-something attribute and pastes its value (of the attribute) in the input element I have. It ...
0
votes
0answers
11 views

Angular 2 parse dynamic template as string

I'm using angular 2.1 and want to dynamically import a template witch is a string from the backend. I already use ComponentFactoryResolver to load dynamically my parent container, now I need to ...
0
votes
0answers
19 views

Angularjs UTC time to EST time zone by using date filter

Angularjs date filter issue: I have following date in my jSon: 2016-11-19T14:00:00 When I am using {{value | date: 'MM/dd/yyyy hh:mm a'}} is shows 11/19/2016 02:00 PM When I am using {{value | ...
-1
votes
1answer
21 views

Angular Js dropdown Selected Value undefined inside the controller

I am trying to select a dropdown value in angularJs and save it in a service so that i can use it on another view to display the user his selected value and full dropdown.But when i try to log the ...
0
votes
0answers
8 views

How to add a view in ng-admin that doesn't call backend?

I want to add a static view in ng-admin, where no backend call is required. Something like an about section. Is there a way to do that?
-1
votes
0answers
12 views

Angular app not loading properly main.js file not found

Error message image When I searched the web most of the similar questions had their app.component file commented, mine was not. app.module.ts file /* tslint:disable:no-unused-variable */ ...
0
votes
1answer
24 views

Subscribe to both route params and queryParams in Angular 2

I have set up the following routing system export const MyRoutes: Routes = [ {path: '', redirectTo: 'new', pathMatch: 'full'}, {path: ':type', component: MyComponent} ]; and have the ...
0
votes
0answers
13 views

Ui Router 1.0, Pass parameters through ui-sref

In the new [email protected] I'm trying to pass parameters through ui-sref. Example: ui-sref="login({tab : 'client'})" This is not working in the subsequent components controller. ex: ...
0
votes
1answer
11 views

Order and filter Server-Sent-Events in angular.js eventsource

I have a client in AngularJS where I consume multiple SSE (Server-Sent-Events) in Java from the Server Side (there are multiple endpoints in different web servers in the backend). Note: I have to use ...
0
votes
2answers
25 views

Angular execute function after multiple API call

I'm writing a angular service that make some http call. The code is something like this. this.checkAndSendNotifications = function() { UsersService.getArray(function(array) { var notifications =...
-1
votes
1answer
17 views

Javascript Angular factory explanation

app.factory('WeatherApi', function($http) { var obj = {}; obj.getLoc = function() { return $http.jsonp("http://ipinfo.io/json?callback=JSON_CALLBACK"); }; obj.getCurrent = function(...
-1
votes
0answers
10 views

Data combined in an object is not displaying in the next view AngularJ

//CONTROLLER $scope.order = $scope.getOrderData; $scope.getOrderData = function() { $scope.order = letterCreateSrv.getOrderData(); }; $scope.savePackageData = function(data) { console....
0
votes
0answers
8 views

Resuming chunked file upload with blueimp jQuery-File-Upload uploads all at once

I'm trying to implement file upload with blueImp jQuery-File-Upload using angularJS. The file upload is supposed to support chunked upload and automatically resume if a chunk upload fails. ...
0
votes
0answers
16 views

Angular UI Router: ui-sref does not render render the page I'm trying to route to, but it appears in my dev tools

I've been banging my head against the problem for embarrassingly long now. I'm using Angular UI Router to handling the routing in a small personal project I'm working on, and I have a strange issue. I ...
0
votes
0answers
9 views

Browser reloads on getting a vaue from Localstorage

I am having a major browser reload that takes up a few seconds on getting an array stored in the browser's Localstorage. The array is stored when the user signs in and stays unchanged until an update ...
0
votes
0answers
10 views

How to send value from <script> back to js file or post value to php file directly from <script>

I'm trying to send my value back to my JS (controller) and post it to php file but couldn't. It showing value is undefined in my js file. Or anyway to post value directly from script tag to php file ? ...
-1
votes
1answer
16 views

Use Angularjs ng-repeat to put array data in some structure

I have the following array data,,I want to use Angularjs ng-repeat to put this data in table like the following image, Can anyone help please? var data=[ {status:"open",year:2014,...
2
votes
1answer
26 views

Can you transclude into a child directive in Angular?

I want to be able to do something like this in my app: <pill-autocomplete> <pill-template>{{item.name}}</pill-template> </pill-autocomplete> Where pill-autocomplete has a ...
-1
votes
0answers
7 views

How pagination link ui.router access to variable each page

I have some page with AngularJs ui-router . Each page have a link for surfing . But i want last page link be disable until begining page process execute and then active . for this target i use custom ...
0
votes
2answers
37 views

multiple if checks in ng-class

So I have this piece of code in my angularjs app that I include in a table. I want to activate the class 'rare' if the index is 0, 1 or 2 only. The index is the rows. Let's say I have 8 rows in my ...
0
votes
0answers
2 views

angular-bootstrap-calendar is having a unknown provider error for alert

I have added bootstrap-calendar to my angular project and it works well untill I inject moment, alert, calendarConfig in my controller. It seems alert is not working. I keep getting the following: ...
0
votes
1answer
17 views

Node smartcard throw SCardConnect error while scanning the card and SCardListReaders error after disconnect

I am also using angular and electron, but everything worked fine previously. This is the error: Error: SCardConnect error: ��������������δ���ɣ����ܷ������ܿ��� (0x8010000b) After the first time ...
0
votes
1answer
18 views

angular $sanitize vs. ng-bind-html

I am using angular's ng-bind-html to bind this text to page: Ale skoro nikdy sa nepozeráme na priemerné produkty s údivom, že nie sú skvelé. Priemerné služby a produkty robia to, čo sa od nich ...
1
vote
0answers
13 views

function on $scope vs function on $window

We can create functions at scope level. If i have a controller todoCtrl then if i define a function inside the controller scope that method will reside inside the controller scope. For example, $...
2
votes
1answer
12 views

angular directive is not at the right place

I have simple angular directive in the table but it renders before the table. app.directive('myDirective',function () { return { restrict : "E", templateUrl : "directives/myDirectiv....
0
votes
0answers
14 views

Dependencies from jsonwebtoken when import in typescript project

I cloned the repository angular 2 quickstart from: https://github.com/angular/quickstart Next, I executed the next commmands: >npm install >npm install --save jsonwebtoken >typings ...
0
votes
1answer
14 views

I am creating a application using angularjs and spring rest ful services, But my js and css files are not loading giving 404 error

getting this error. I am using dynamic web module as 2.3 . maven spring angularjs jsp. I tried to add mvn:resources that too did not worked for me,So removed. Please help , Thanks in advance. ...
0
votes
2answers
21 views

AngularJS: Summing nested objects from multiple objects

Based in the following table I need to get the total of all subtotals. I have tried to use the same sumByKey filter but I does't work. Plus, the sum of all subtotals must be based on the result of ...
0
votes
1answer
14 views

Adding column filter for bootstrap table (angularjs)

I am wondering if there is an easy way to add the simple filter options (similar to excel with multiselect option) for each column in a bootstrap table. I have searched enough on google, but couldn'...
1
vote
1answer
17 views

How to avoid login if already logged in in angular js

In my application i am maintaining URLs to separate the customers like myapp.localhost.com/#/customer1 myapp.localhost.com/#/customer2 Now say customer1 logged in. Then in same browser but in other ...
1
vote
2answers
14 views

Can't get access to Angular constant

I'm trying to get access to my angular .constant via this code: angular .module('coreApp') .constant('MY_CONSTANTS', { myConstant_1: 'My constant' }) My controller: .controller('...
0
votes
1answer
18 views

View No Longer Updating Immediately in Efforts to Clean Up Scope Soup

I've fallen victim to self-imposed $scope soup and am taking steps to correct this. I'm adopting some of the methods written about by Josh Carroll in his article here: http://www.technofattie.com/2014/...
0
votes
2answers
23 views

Angular: Filter to limit words by spaces

I'm still very much learning JS/Angular, so please be easy :) I am trying to create a limitTo filter on certain data. This is a string of space-seperated contents, such as: $scope.data = 'foo bar ...
0
votes
0answers
12 views

AngularJS injecting initial $scope data using a handlebars server side render of initial page?

I am using node.js with handlebars. I am now working on a single page application page where the initial pages DOM is based on my db model. I could just render an HTML page with AngularJS and then ...
0
votes
1answer
29 views

Javascript variables not updated after Anuglarjs ng-repeat changes made to DOM

I have an angular app which extracts data from a JSON file which populates the webpage via directive template for the user using ng-repeat. When the page is initially loaded, the ID(from the json ...
0
votes
1answer
12 views

yeoman : yo command hangs forever

I started following this tutorial : http://mobileangularui.com/blog/using-the-generator/ after one day of resolving errors and dependencies, now I am stuck as my yeoman since I didn´t found any answer ...
0
votes
1answer
19 views

get selected checkbox values from tree in angularjs

I would like to know how can we get the selected checkbox values from tree in controller from the below example? On click of a button i want to display all the checkbox names in an array. Here is my ...
2
votes
0answers
29 views

dynamic checkbox filtering in angularjs

hi i"m new to angularjs wanted to filter as like this format i have three json values 1.phone manufacture name and 2.phone ram and 3. phone price According to the manufacture the ram and price ...