Use for questions about AngularJS (a.k.a. AngularJS 1), the open-source JavaScript framework. Do NOT use this tag for Angular 2 or later versions, which currently should use the "angular2" tag.

learn more… | top users | synonyms (2) | angularjs jobs

0
votes
1answer
11 views

how to use match function in angularJS to filter out an object with certain string value

I'm trying to filter out any object with the fileName value of "foo" here is what i have so far var item = []; var child_item = []; angular.forEach(item.files, function(...
0
votes
0answers
12 views

Submit with button, on enter, outside of form with only Angular

What solution would you implement for an Angular "form", where you wanted it to submit on an enter key press, but you can't rearrange the elements to fit in a <form> element. For instance ...
0
votes
0answers
7 views

ui-route works just the first time angularJS

i have a problems , after to have put the ui-route modal and page , i have another probleme my ui-route works just the first time and i don't know why this is my route angular.module('ui....
0
votes
0answers
10 views

issue with angularjs ng-pattern special character & (ampersand)

issue with angularjs ng-pattern special character & (ampersand) angularjs ng-pattern="/^[-& A-Za-z'0-9#/]*$/". Input text filed should be able to take the special character &, but it is ...
0
votes
0answers
3 views

Pdfmake - exporting multiple tables when 'ALL' is selected in the search filter

I have exported a table using pdfmake within angularjs to a pdf and would like it so when I select 'ALL' routes on the main page, for it to export multiple tables associated with all the Routes within ...
0
votes
0answers
8 views

ui-calendar do not display recurring dates to a particular event

eventSources array in Angular ui-calendar has many dates, but it only shows start date of a event in the calendar, It do not show recurring event dates of that particular created event. But ...
0
votes
2answers
36 views

Angular: Can't get ng-class to work inside ng-repeat

I find answers here all the time, but haven't posted a question in years. I've read through questions similar to my current one, but after applying all the tips I've found, I still can't get my code ...
4
votes
3answers
38 views

Executing javascript functions stored as string using AngularJS

Is there any way to inject the JavaScript stored as a string in AngularJS controllers dynamically? var dynamicJS = "function DoSomething(value){var x = 1+1 return 2;}" In the above function, I have ...
0
votes
0answers
7 views

IE browser crash for angular code run on windows 10

I have built an application on angular 1.3. The code runs fine on windows 7 IE11 but I am facing browser crash whenever I run the application on windows 8 or windows 10. a) There is no error on ...
0
votes
0answers
6 views

How to get the model of the target list model in ui.sortable?

I've been pouring over the documentation and I cant figure this one out. When I drag an element over another position in the list I can use ui.item.sortable.model in the over callback to get the ...
0
votes
1answer
19 views

jQuery in an Angular Controller: $(…).overhang is not a function

So I'm attempting to implement overhang.js into my application because I like the alert messages it has. Seemed like a fairly simple task at first... All I had to do (I thought) was replace the line ...
0
votes
0answers
17 views

How to make my web app faster

i want some general suggenstions, about how can make my web app faster. Using visual studio, is MVC project, but he hasn't mvc routing but AngularUI routing. Also i use KENDOUI a lot also. First of ...
1
vote
1answer
23 views

Difference between WebApp that connects to API vs backend rendering

Sometimes when I create basic web tools, I will start with a nodeJS backend, typically creating an API server with ExpressJS. When certain routes are hit, the server responds by rendering the HTML ...
0
votes
0answers
7 views

how to unit test an angular directive that binds to scroll

I have an angular directive that returns the scroll top attribute of the element on the scroll event, but I'm having some problems unit testing it. How do I mock a scroll event so that the scrollTop ...
0
votes
0answers
7 views

how to add custom filters to ng-table-dynamic?

I have an Angular 1.6 app that uses ngTable (ng-table-dynamic). It works well, but I cannot figure out a way to add basic filters to the rows. I'm moving from ng-table to ng-table-dynamic From: %...
0
votes
1answer
18 views

AngularJS checkbox remove vlue when unchecked

So we have a shopping portal project, when we checked the checkbox it will plus the value in the cart, the problem is when we unchecked the checkbox it's still adding an item and we checked it again ...
0
votes
1answer
11 views

AngularJS, how to get domain from a cookie

I'm trying to remove cookies from my browser when logging out, but I can't do that without specifying the domain when removing. $cookies.remove('Name',{domain:'.test123.com'}); I want to automate ...
0
votes
1answer
11 views

routeProvider doesn't work and controller undefined using angularjs 1.5

I'm working on my first app. When I open it in the webbrowser I get this error: Uncaught ReferenceError: controller is not defined at app.js:3 at app.js:15 I got this error after I created ...
0
votes
1answer
15 views

Uncaught TypeError: Cannot read property 'module' of undefined

i have added the angular js and its dependencies as follows: <head> <meta charset="utf-8"><!-- Angular Material Dependencies --> <meta name="viewport" ...
0
votes
1answer
11 views

Createjs and Angularjs: Cannot read property 'Stage' of undefined

Hi i want connect Createjs with Angularjs i have this code in my controller var stage,padel,createjs; $scope.load = function () { init(); } function init() { console.log('...
0
votes
2answers
21 views

Angularjs 1.5 ng-controller on the <head> tag

I'm using Angularjs 1.5. Created a service to handle a META data and page title. trying to apply it. The issue is - for some reason if i define a controller directly on the <head> tag: <...
0
votes
1answer
22 views

How to stop second event mousewheel before first not end

I've got code wich make my scroll from element to elemnt. If i scrolled my mousewheel a little bit it's work correct. But If I scrolled more faster I've got troble. var currentPosition = 1; angular....
-1
votes
1answer
17 views

send ng-init variable with $http.post , angularJs

How can I initialize a $scope variable using PHP so that it can be sent to the server later in an $http.post request? I tried with ng-init but it doesn't seem to work: <body ng-app="app" ng-...
0
votes
0answers
15 views

how to use Angular-Component (v1.6.3) with requirejs

I am creating a angular application with Components. I am using RequireJs to load the required modules. I am able to use Controllers, directives, services without any issue with requirejs. But ...
0
votes
1answer
14 views

How to recompile directive's content

I want to add an 'ng-pattern' directive to an input element through a custom directive. I don't want to do it in the templates directly, but it looks the element is never recompiled. Any ideas? Thanks ...
0
votes
0answers
12 views

Angularjs Post call to spring boot

I am new to Spring MVC, I am building an With angularjs and Spring Boot. When i tried to make POST call through angularjs, i am getting this error. But when i tried with the postman it is working ...
0
votes
1answer
16 views

How to delete ngCookie (angular-cookies)

I created a cookie called 'stateCookie' when I start my app. As I change state I add variables into that cookie. When I logout, I want this cookie to be completely destroyed, or empty. On their docs ...
0
votes
1answer
17 views

Using Resolve In AngularJS Routes not working

A resolve is a property you can attach to a route in both ngRoute and the more robust UI router.but resolve can not working well. not load data .factory("Init", function($cordovaContacts) { var ...
0
votes
0answers
27 views

Angular controller called twice when served from dist folder

Specific only to 1 controller, this controller run twice when served (grunt-build) from dist folder. For example: if I have 1 http request, it will call twice when this page loaded. And it only run ...
0
votes
0answers
10 views

ionic creator passing data to subpage

I'm pretty new to Ionic Creator. I'm using Creator1. I have a problem reading data passed from a listview to a results page. The results page is showing specific data about the item chosen from the ...
0
votes
2answers
32 views

Why aren't events from within my angular controller triggering more than once?

I'm trying to get angulartics set up in a component that is being used to display errors/important info to users in a banner. However, I'm running into an issue where it seems like the values inside ...
0
votes
0answers
18 views

Return a value from forEach in protractor - Managing closures

I have the following helper code from which I am trying to return the number of occurences of a string. this.getActualFilteredStatusCount = function(strFilter){ return this.getTotalRows().then(...
0
votes
1answer
18 views

Avoid from adding event listeners several times

I have an Office add-in which can open a popup browser window by popup = window.open("https://localhost:3000/#/new", "popup", "status=1, location=1, width=1000, height=1200") This page is coded by ...
0
votes
0answers
10 views

Attempting to get geolocation from sub module in ionic/angular application on ios

I am working on an Ionic application for IOS using the Cordova geoLocation plugin. I am able to call the geolocation plugin from the main module of the application without issue. However, when I ...
0
votes
0answers
20 views

Spring Boot + Tomcat 8.5.12 + linux

I am working with Spring Boot version 1.5.2.Release Angular 2 with systemjs config for front end Maven build with following high-level configuration Pom.xml <dependency> <groupId>org....
0
votes
0answers
13 views

HighCharts draggable points - drag function not firing

I have a highcharts line chart working with draggable-points.js The user is able to drag the points to adjust the value. But having changed the value I want them to be able to save the updated values....
0
votes
1answer
35 views

Removing from array has side-effects

I am making a form to create orders. The input fields are dynamic and can be added with a button. Now after every row there is a delete button, which should delete the row. For this this I made the ...
0
votes
0answers
23 views

AngularJS - Cannot change directive template dynamically in link function

I want my directive to dynamically change its template by watching a string received as attribute from the parent controller, so I used $compile from this answer together with $observe from this small ...
0
votes
0answers
13 views

'.blur' input and hide keyboard after pressing return on mobile

I have a form with a single input field, the form submits when you press enter. This causes the text you have typed to be appended to a table. The input field remains in focus as you may want to enter ...
0
votes
1answer
32 views

How to get scrollbar behind elements

I have an unsorted list with certain width and height. What I am trying to accomplish is a situation where I click on list item and after that I want it to overflow through scrollbar in list (dont ...
0
votes
1answer
19 views

Angular Bootstrap Toggle prevent default

I use http://ziscloud.github.io/angular-bootstrap-toggle/ I want in some occasions to display a popup and cancel the toggle action. <toggle ng-click="toggleChanged($event)" style="v3-toggle" ng-...
0
votes
0answers
23 views

angular js in multiple images add one by one also delete images with div

I have a need to loop through multiple image files and I'm using AngularJS to do so. I want one upload images after option second image like is continue many images, after any images delete shift ...
0
votes
0answers
20 views

ionic ng-submit/ng-click/on-tap working on browser but not on android after building apk

So i got this example found at: http://odhyan.com/blog/2014/12/building-a-simple-quiz-app-using-angularjs/ , it's made as a desktop app, i copied the service, directive, controller in my ionic-app ...
2
votes
0answers
29 views

Webpack cant build angular 4 project at first time

Trying to build the application. If I build it with "watch" option, 1st time: build failed, and after minor changes (new space for example or new line) and saving all builds successfully. Please, ...
1
vote
1answer
27 views

Angularjs and Google maps API

I have a google map in AngularJS, i'm trying to create markers with a direction (so a line from A to B) for each ng-repeat. This us my HTML <div class="col-lg-12" ng-repeat="quotes in quotes"> ...
1
vote
3answers
38 views

calculate average with angularjs in nested json

I receive a JSON response like this: { "productDesc": "Other posterior corneal dystrophies", "ProductId": 1, "productName": "Keylex", "productPrice": 3529.24, "productStatus": ...
0
votes
2answers
32 views

How can a link function and controller function share knowledge in an angular directive?

I have an angular directive that shows payment history. By default, it shows the last 6 payments using the vm.numberOfPaymentsToDisplay variable. If you click view more, it adds 10. Now, when a user ...
1
vote
6answers
24 views

How to get ID from select box using AngularJS

I am new to Angular JS. I have the following <select> options, and I have to send id of the community i.e., x.community_type_id to fetch subcommunity. <select> <option ng-repeat="x ...
0
votes
0answers
17 views

angular-carousel unknown provider error

I am trying to implement this angular-carousel. I keep getting this error: Error: [$injector:unpr] Unknown provider: $swipeProvider <- $swipe <- rnCarouselDirective The only topic i could ...
2
votes
1answer
18 views

AngularJS: How to translate a md-placeholder?

I have a very simple datepicker using AngularJS and I want to give it a placeholder to translate it using AngularJS translate (like I do usually in my project). Here's my HTML code: <div flex ...