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
2 views

AngularJS ui-grid export menu missing export buttons

I am new to AngularJS ui-grid, and a first time user of the exporter feature. I am trying to add an export menu to an existing ui-grid running in a groovy/grails app. I am using this example as a ...
0
votes
0answers
3 views

Modify model on change of input inside ng-repeat

I have a table where I list some products with some inputs, basically what I want is to change an input value when another changes, here's the <tr>: <tr ng-repeat="bought_product in ...
-1
votes
0answers
8 views

Apache redirect calls to specific subfolder

I'm building a Yii + Angular app. The folder structure is as follows: root >yii > app > angular files, bower_components, and gulpfile My gulpfile (in the app ...
0
votes
0answers
2 views

Export excel file for frontend in yii2

Can someone suggest me to generate excel file in frontend using yii2.I have some data from database when i click generate,it must export excel file.My front end is in anularjs.Thanks in advanced.
0
votes
0answers
4 views

ASP.NET MVC & Angular: Custom Attribute / ActionFilter when Session Cookies expire, want it to redirect to Login page but it doesn't always work

Details I'm using ASP.NET MVC with Angular. If I do a hard refresh (F5), it hits the attribute I created just fine.. also when the session cookies exist it accesses it fine. but say the user is on ...
1
vote
1answer
7 views

Responding with data to a Slack url in Express

I have the following route in my Node backend with express middleware. My app uses the Slack backslash api to post a link to a user's channel. When user clicks it opens a form on an angular app hosted ...
0
votes
1answer
8 views

How to reuse content accessing by url and conditional statement in AngularJS

In my app I have a slidebox style interface. In one of the slides, I want to show a certain thing conditionally (ie if Meteor.user().profile.asdf). I want to show the exact same page via navigation ...
0
votes
0answers
7 views

Globally Set All Select Boxes to First Available option in AngularJS

I have a lot of select boxes in my application, being generated by lists of data and assigned to various ng-models. I want to set the ng-model value to the first available option (respecting filters) ...
0
votes
1answer
9 views

Dynamic form generation, advanced behavior

I'm constructing a input form generation system. A simplified version of my code looks as follows: <div ng-repeat="ele in form.Fields"> <label for="{{ele.InputId}}"> ...
0
votes
0answers
16 views

access is denied while uploading file to tomcat server in java spring

this is my html file: upload.html <div ng-controller="fileUploadCtrl" class="allOrder"> <br /> <br /> <form ng-submit="uploadFile()" enctype="multipart/form-data"> ...
1
vote
1answer
16 views

Large lag when scrolling my angular site in Chrome on Android

There is a large delay when scrolling my site http://www.cinesift.com/ in Chrome on Android. By delay I mean the time it takes between swiping on the screen with my finger and the scroll to begin. ...
0
votes
2answers
25 views

Angular $http - process response data while receiving it

I'm building a simple UI that communicates with my backend server. The UI sends to the server a URL to process, and the server would return a list of results. Regarding results, each result takes ...
0
votes
1answer
23 views

angular js animate to scroll to top of viewport

I am new to angular and trying to do something that is already working in Jquery. I do not want to use jquery and angular together and wanted just code it in angular and need some help using this in a ...
0
votes
1answer
12 views

controller $scope variables undefined in jasmine tests

I am writing my first Angular app tests with Karma and Jasmine. I have a controller with this function: function getMyLists() { getLists.getOne().then(function(listOne) { $scope.list1 = ...
0
votes
1answer
19 views

How to keep base href in location?

I want to implement an AngularJS based admin backend on my website. Say the backend is located at /admin and I've set my <base href="/admin"> and I set my routing up like the following angular ...
0
votes
0answers
2 views

ngCordova OAuth Facebook Not Returning E-Mail Address

I'm using ngCordova OAuth and I can sign into Facebook and I receive an access_token but I don't receive the e-mail address. Anyone know how to fix this? $cordovaOauth.facebook("XXX", ...
1
vote
1answer
10 views

angularJS shows empty slots in array but it's not

It's weird and I don't have any idea of how to solve this issue... I have my controller with an ajax call using a service with promise, which works great. ...
1
vote
1answer
13 views

Using ngAnimate with ngRepeat with spliced elements

I am working on a proof of concept SPA web app using Angular and SignalR. I want my client app to animate the new items that are inserted into a list using ngAnimate that are generated using ngRepeat. ...
0
votes
1answer
9 views

using $sce.trustAsHTML in angularJS 1.2.16 giving me a not a function error

im pulling in html from another site and it pulls in fine but i get this error in the console. this post is related to this post: Using AngularJS 1.2.16, unique issue with data escaping for href links ...
0
votes
1answer
14 views

UI routing not working, angular JS

I'm trying to display main.html template via UI routing, but its not working for some reason. Can someone please point out the mistake in my code. Thank you. appModule "use strict"; ...
4
votes
3answers
32 views

Using John Papa's AngularJS style guide, what is the proper way to declare data objects?

Let's say that I have an AngularJS data service that makes a call to the server and returns an object that can be extended with additional methods. For example, assume the following function is part ...
1
vote
2answers
21 views

Overwrite a variable when an other variable turns false Angular.js

I'm working on an angular project and I was wondering if there is a proper way to do this: I have a variable called signed, its basically a boolean. Its binded to a checkbox. I also have a variable ...
0
votes
1answer
12 views

Angular: How to filter in views with JSON values

I'm looking to see why a very simple Angular filter isn't working for me in example. Everything I've found online points to this format but it doesnt seem to work. Basically, I just want the ...
0
votes
2answers
34 views

How to use one .js file for multiple .html pages using AngularJS

I have one function in a JS file which should ideally be used by multiple html pages. I don't want to duplicate this function to another file. Currently, my js file starts like this: (function(){ ...
0
votes
3answers
31 views

how do I consume an AJAX JSON response in AngularJS?

Note Many people are posting comments as answers, but none of them have actually answered the question posed by this OP. So please do not consider this answered. I will respond to comments. If a ...
0
votes
2answers
28 views

Remove and add items in JSON inside AngularJS

I have this JSON: var videos = [ {"id":"9854", "time": 56}, {"id":"7859", "time": 29}, {"id":"8745", "time": 59} ]; I would like to add an item if it isn't there inJSON however, remove ...
3
votes
1answer
30 views

Start Animation from last state it ends CSS

var app = angular.module('dialApp', ['ngAnimate']); angular.module('dialApp').controller('MainController',['$scope', function ($scope) { $scope.test = 'Test'; $scope.left = false; ...
1
vote
1answer
17 views

Can't get animation with ng-repeat working

I have a simple ng-repeat with animate. I already made my module to depend on ngAnimate, and I already defined my transitions in CSS using classes like .ng-enter and .ng-enter-active. I went to the ...
0
votes
0answers
26 views

AngularJS removing attributes from HTML template

I'm using Angular with angular-route to load html templates dynamically inside an ng-view. I've added attributes to tags in my template, but when loading them via angular-route and inspecting in ...
0
votes
1answer
33 views

angularjs ng-show delay in hidden div with same model

My code is given below: <button class="btn-border-blue" ng-show="!hasCouponCode" ng-click="hasCouponCode = true;">Cupom</button> <div class="form-inline-cupom" ...
-1
votes
3answers
29 views

dynamically change ng-repeat

I have an object made like this: var examples = { 'example1': { ex1: {}, ex2: {}, ex3: {} }, 'example2': { ex1: {}, ex2: {}, ex3: {} } ...
0
votes
1answer
15 views

Learning AngualrJS using Visual studio

I am learning AngularJS, using Visual Studio. I am not web developer, so I am not sure which template to use, there are multiple templates and its add a lot more things which add to un necessary ...
0
votes
0answers
7 views

Empty zip file when using JSZip and JSZipUtils with AngularJS to zip multiple image files

I'm trying to zip together multiple image files using JSZip and JSZipUtils with AngularJS. I'm still fairly new to AngularJS, so I'm sure I've over complicated the process. Please bear with me. ...
1
vote
0answers
6 views

How to spyOn chained method call to Restangular in Jasmine?

I am using jasmine to write unit tests for an angularJS factory that returns a call to Restangular. Take for example, function funcToBeTested(params) { return ...
0
votes
0answers
16 views

AngularJS view nesting and $scope inheritance using ui-router

I'm trying to understand how scope inheritance works within ui-router. My goal is to have a main "app" view state for setting global areas (ie. navigation), with nested views for controlling the ...
0
votes
0answers
31 views

Angularjs - should I use forEach or Filter?

I have an angular app that returns a collection called users. I am using it to populate a dropdown using ng-options. Within the collection I have a field called temp_number and another called ...
0
votes
0answers
8 views

Cordova Geolocation is not watching location on iOS

I trying to create mobile app using ionic.it is used track Geo activity log for user activity, when user click start it will start recording position coordination. when user end his activity he will ...
-1
votes
1answer
16 views

IN mobile device's text box is accepting special characters (Eg:¥,«.£,€)

Hi I am an angular developer, when I am testing the text box in desktop it is not accepting the special characters and in mobile also it is not accepting, issue is with specific special characters on ...
0
votes
1answer
16 views

How to set datetimepicker options dynamically

I am trying to set the options of this datetimepicker plugin, but I need it to be dynamically. Here is this in my controller $(document).ready(function () { var today = moment(new ...
0
votes
0answers
6 views

Error: ng:areq Bad Argument when trying to define controllers in separate files

My app worked great, but I had a huge app.js, so to modularize I put controllers into separate files and set up my app in a more conventional way. Now I'm getting the error above along with: 'Argument ...
0
votes
3answers
29 views

How can I access the following json data in Angular JS?

Well here is my JSON { "questions" : { "Question 1" : [ { "Q" :"Question" }, { "A" : "Answer A" }, { "B" : "Answer B" }, ...
1
vote
1answer
27 views

JavaScript - AngularJS promise not returning anything

I am trying to return a simple HTTP post on a unit test with Jasmine but it seems to not work. The application works fine on the web. I have tested several isolated functions. But this won't work. ...
0
votes
1answer
19 views

Mongo, Express vs mySQL

im currently in the face of considering what to use for building a piece of software - The system needs to handle complexity like: - User Management (ex: Trainer Login - Client login) Different ...
0
votes
0answers
15 views

Load multiple Angular projects from Spring boot

I have a Spring boot application and I have two completely independent angular projects. One project for the end user and another project for the admin. For business reasons, I am forced to have ...
2
votes
1answer
37 views

AngularJS - Dynamic Directives using ng-repeat

I've spent a while trying to find an elegant solution to this, whilst I have a solution that 'works' it doesn't feel like the easiest or correct way of doing things. So, my question is...how can I ...
0
votes
0answers
8 views

Change routes stops image display

I have an ionic app with a 3 tabs. Two tabs are used to take pictures and display them. My problem comes when changing the default application tab. The app starts in the new default tab as expected, ...
0
votes
0answers
24 views

How to set z-index with angularjs directive for different inputs?

I have created a directive for input element and i am loading dynamically five inputs tree data in different rows, I am having problem here with z-index when i click on input dropdown is showing ...
0
votes
1answer
5 views

Setting a dynamic favicon for IE9 from the controller (Angular)

I am struggling to have the favicon set dynamically (using the controller) on IE9. If I just hardcode the link like this, it works and I see the favicon: <link rel="shortcut icon" ...
0
votes
0answers
6 views

Back button in ionic returning only once

I am using the function pushState to populate the history, up to Ai everything right, but he in the hour of use windows.history.Back() can only return once. The function that adds is the following: ...
1
vote
0answers
10 views

Is there any performance difference between $emit event and casual function call in ng-click?

<script> angular.app('app', []) .controller('ctrl', function($scope) { $scope.$on('foo', function(evt, msg) { alert(msg); }); $scope.foo = function(msg) { ...