AngularJS (a.k.a. AngularJS 1) 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 ...

learn more… | top users | synonyms (2)

1
vote
0answers
15 views

In angularjs application, html pages display even though a user is not logged in

I have an angularJS application which requires logging in. I have defined my states in the application. If I don't log in and directly open a state in the browser it redirects to 404. The issue is ...
0
votes
0answers
10 views

Jasmine test for ng-invalid not working in Internet Explorer

I'm writing jasmine test cases for a regex validator. Here is the test case: it("should be invalid when entered special characters which are not allowed", function () { var textfield = '%%...
0
votes
0answers
3 views

How to plot 23+ waypoints in google map direction api in angularjs?

I am using ng-map directive for creating route on google map. its working fine with less than 23 ways poits but when waypoits exceed more than 23 route cannot display on google map. https://ngmap....
0
votes
0answers
15 views

Passing data between components while calling navigateByUrl method

I have two components called UserRegistration and ListAllUsers. My use case is when user complete the registration on UserRegistration component then the success message should be shown on the ...
0
votes
1answer
23 views

ng-click is not working angular 1.2

var tr = $event.currentTarget; var el = angular.element("<tr class='detailed-document'><td colspan='3' ng-click='alert();'>Hello</td></tr>"); var elements = document....
1
vote
3answers
27 views

how to get the scope I bind to template inside directive link

in html,i bind id inside directive: <my-customer data="id"></my-customer> in js: angular.module('Main', []) .controller('Controller', ['$scope', function($scope) { $scope.id= 'divId'...
0
votes
0answers
19 views

angular call callback after update two way binding values in component

myApp.component('example', { template: '<button type="button" ng-click="$ctrl.click()">click me</button>', bindings: { value: '=', callback: '&' }, controller: function () {...
-1
votes
0answers
21 views

Getting Invalid date in safari

Hi all Iam getting invalid date in safari browser, Below is the date which working fine after converting to new date in chrome but not working in safari any help will be appreciated. date coming from ...
1
vote
4answers
31 views

Angular routing not working on anchors

I have just started working with Angular. Routing is not working with anchor tag. My code is (function(){ 'use strict'; angular.module("PHC",["ngRoute"]) .controller("...
0
votes
0answers
6 views

angular-chart.js : how to show numbers in each bar of stacked bar chart

I am using angular-chart.js to draw some charts. We know now chart.js supports stacked bar chart. But I have not found how to show numbers in each bar, like following: From above pic we can see each ...
1
vote
1answer
42 views

apply CSS class on HTML element inside ng-repeat based on condition

I am trying to make HTML headings active/inactive based on active variable. But to set the active flag on clicking the heading, I am using the $index variable of ng-repeat directive: <div ng-init="...
0
votes
0answers
9 views

How to specify hover color angular-chart.js

I'm using the angular version of chartJS. I've a pie chart and want to specify the hover color of the arcs. Apparently someone already managed to do that: https://github.com/jtblin/angular-chart.js/...
0
votes
0answers
10 views

NodeJS vs Laravel PHP server errors

I'm a Laravel PHP developer learning NodeJS with Express. I'm confused on the differences both have in error handling. Laravel seems to throw server errors without status codes. Therefore, in Angular,...
0
votes
1answer
19 views

How to prevent calling ng-drop-success on click?

I have a div like this: <div ng-drop="$ctrl.activateDropArea" ng-drop-success="$ctrl.onDropComplete($data,$event)"> But onDropComplete is called even I just click on the draggable element ...
0
votes
2answers
32 views

When Template Engine Can be used via Angular 2?

I decide to use template engine (Like JADE/PUG) for using via Angluar 2.0 for clarity and cleaning the code for developing a big single page application (SPA) and just I want to reach a very good ...
0
votes
0answers
13 views

Get JSON selected data in ui-bootstrap modal

being very new to Angular I need to pass my JSON data of the clicked item into the modal popup that would have a custom url, there are a few examples and I cant seem to get any of them to work. Link ...
0
votes
0answers
16 views

How to inject custom modules after accessing from services

I was injecting custom modules as following. $ample.lineMonitoring = angular.module('lineMonitoring', ['faultEvents','disturbances','waveforms','logI', 'dnp3Points', 'beagle']); It was working fine. ...
0
votes
1answer
22 views

Angularjs Directive Roundoff two digit after decimal

I want to create a directive, that will round off the two digit values after decimal. For example: 10.456456 should be 10.46 10.3633 should be 10.34 This is what I have tried so far, but it'...
0
votes
2answers
19 views

why the factory is not able to access inside the controller

I have created notification factory and pass inside controller,Inside controller when assign the factory to the scope getting error. alertsManager MyApp.factory('alertsManager', function() { ...
0
votes
0answers
15 views

Split a JSP project into back and front -end

I found on WebSystique ( http://websystique.com/springmvc/spring-mvc-4-and-spring-security-4-integration-example/ ) blog a really interesting project on how to create a Web Application (Hibernate + ...
0
votes
0answers
28 views

Replace matching pattern only if it's not in a specific place in the content with regex

Part of our tools that we are building rely a lot on regex. Once of the things is replacing placeholders with real values on the fly using standard javascript's `RegExp. All of our placeholders look ...
3
votes
1answer
23 views

AngularJS working with ng-change in a directive with isolated scope - Moving to component based architecture

I'm currently fighting to get ng-change to fire in my directive with a isolated scope. Im trying to move away from ng-controller to a more component based architecture yet it is proving more ...
0
votes
0answers
9 views

Notification alert service not working in controller getting typeError: Cannot read property 'alerts' of undefined

I have capturing the application response error ,while capturing the error, i am getting the error. In Interceptor ,according to the response code , have assign the rootscope broadcast and show the ...
0
votes
0answers
13 views

How to update Ionic 2 Tabs Badges by binding property from an Angular 2 service?

I am trying to get a value from a service into tabs component whenever the value in the service is updated, and if possible, bind cartNumber in cart.service.ts to cartNumber in tabs.ts. My use case is ...
1
vote
1answer
13 views

Angular - Cascading dropdown behaviour for Single Select Box

Usually We do cascading Dropdown list with separate Select Box. Like below Image. My requirement is quite different. I want to add only Single Select Box which will act as Cascading behaviour. ...
0
votes
0answers
7 views

navigate the list of suggestions using key board

i am new to angulajs, i have a form in that location textfiled is there when the user focus on the location filed i display an Ul and when the user types the location name according to that i will ...
1
vote
1answer
18 views

How to bind error data “Invalid username and password” and “ Username already exists” in AngularJS

In my response its showing a "Invalid username or password" message that is coming from server(node) if I enter invalid fields. But I don't know how to populate that in my template. I tried many ...
1
vote
1answer
17 views

Javascript Context Menuwith AngularJS Table

I am creating a shift planner, here i've made a JS context menu and trying to display the shift via angular. On clicking on any table cell all the cells are getting updated is there any workaround for ...
0
votes
0answers
9 views

how to align children in a angular material row vertically

The html is build with the layout directive (layout="row") and contains an icon and 3 select boxes. My select boxs and icon is NOT aligned - how can I alignment these vertically ? My code <div ...
3
votes
2answers
22 views

ng-change function Calling on-load before selecting

Calling ng-change="changeStudentStatus();" function on-load, before selecting options. <md-select ng-model="ctrl.newStudentStatus" ng-change="changeStudentStatus();" ng-if="ctrl.studentStatusList" ...
0
votes
2answers
17 views

ASP .NET MVC Core WEB API upload file showing error using Angular JS

Here is my client side html (I used ng file upload) <button type="file" ngf-select="uploadFileToUrl($file)" ngf-max-size="100MB"> <!--ngf-max-height="1000"--> Photo </...
0
votes
0answers
3 views

Secure WebSocket with Spring Security OAuth 2.0, AngularJS and SockJs

I'm trying to implement WebSocket support with Angular+SockJs on front-end, and Spring on backend. We are using Spring Security with OAuth 2.0 token based authorization. Spec tell us that i should ...
-2
votes
0answers
30 views

Dynamic fields AngularJs

Here is the situation: I have a form on a web page. Using AngularJS v1.2. After filling in all of the fields we get summary information(retrieve data from the fields). And it is an option to fill ...
0
votes
0answers
13 views

Do not cache or read cache | AngularJS 1.6 | Bootstrap 3.3

I have a modal Bootstrap, inside a call is made $http with Angular. But only when loading the page goes to the server and retrieves the data, the question is: Is it possible to make the call to "http"...
0
votes
1answer
20 views

Angular Javascript inside php foreach inside HTML

I am trying to make a simple shopping website using mainly PHP and HTML. Inside PHP, I created objects from a class, and those objects are in array. Now inside HTML, I am printing each object's photo ...
-2
votes
1answer
23 views

How to make ion scroll look like iphone alarm clock?

I'm new in Ionic. In my app App image I'd like to make every row scroll using ion-scroll and the active function to be in the middle like this pic Iphone alarm clock, and I don't know how to make it. ...
0
votes
0answers
19 views

Add new empty row at beginning in wijmo grid angular2

I am trying to add a new empty row at the beginning of grid on external button click. Grid is showing perfectly fine. <wj-flex-grid #flex [itemsSource]="data" [isReadOnly]="true" [...
1
vote
1answer
14 views

After install grunt url not working?

enter image description hereAm install AngularJS Development with Yeoman, Grunt and Bower install complete successfully,and then run server using grunt server it's also running successfully, but my ...
0
votes
0answers
45 views

Why javascript is not loading in my partial?

Hi I am new to angular and Trying to implement slick carousel it works fine in index page but when I use the same html in partial and use ng-view it does not work. My index file looks <!DOCTYPE ...
0
votes
0answers
13 views

How to create virtual list on body scroll?

[Virtual scroll][1] [1]: https://plnkr.co/edit/qmXrsAp4wuR66ALC1EbH?p=preview I tried to create a virtual scroll on body scroll. But couldn't do. Right now its working on div scroll. Can anyone ...
0
votes
0answers
9 views

Golden layout popouts with AngularJS

I am using golden layout in single page application. Golden layout normal 'open in new window' works pretty well (https://jsfiddle.net/shafaq_kazmi/xs5r6mma/6/) var myLayout = new GoldenLayout({ ...
0
votes
1answer
25 views

Error In Angular JS Setup

I am setting up the environment for my first AngularJS application.I am referring this link. I get the following error: /////////////////////////////Command///////////////////////////////////// ...
0
votes
0answers
17 views

Error in Eclipse Angularjs project

I'm working in eclipse for Angular js project. My tomcat local host is running but when I run index.html file got Error:description The requested resource is not available.
-2
votes
0answers
30 views

want to change content according to other contents

I have URL Click here. In this, screen have vertical menu, contents and preview in mobile frame. While change menu(in vertical menu (here they have used section)) contents changes in contents area ...
3
votes
2answers
34 views

Web.config settings not working to accept file size with more than 1 gb

I am trying to upload csv file with size 1.10 gb and i would like to allow user to upload file up to size 10 gb. Web.config settings : <system.web> <authentication mode="None" /> ...
0
votes
0answers
19 views

How to pass data to fusion charts using Angularjs?

I'm working on Angularjs with fusioncharts. The difficulty i'm facing is to send the particular data to the fusionchart. Let me share my html page: <!--Breadcrumb starts here--> <ol ...
0
votes
1answer
11 views

how to use selectRootElement angular 2 Renderer method

what is the use of selectRootElement , when I tried to use this Renderer function I am getting only root element but it's child not visible on UI . May I get one example to understand this renderer ...
0
votes
0answers
37 views

“/” issue in angular route

I use ionic framework. I have an url address like below: <a ng-repeat="item in list" href="#/detail/{{item.Subject}}/{{item.Id}}" class="item item-avatar"> xxxx </a> Above code, item....
0
votes
1answer
28 views

how to use ng-bind in a jquery function

$(document).ready(function() { $("#other_services{{i.id}}").css("display", "none"); function other_services() { $("#other_services{{i.id}}").css("display", "block"); $(".ser_o{{i.id}}")....
0
votes
3answers
33 views

check/uncheck the check box only if the confirmation message is true in angular js

I am new in angular js. I have a check box when i click on that checkbox a confirmation message will appear. I need to to check or uncheck the check box only if i confirm the confirmation message. How ...