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

Validating form using Angular when name field has dots and brackets

The form to be validated is master detail i.e. it has two portions. master portion contains two fields while detail portion initially has two rows but they can be increased by pressing a button on ...
0
votes
0answers
1 views

No 'Access-Control-Allow-Origin' header is present on the requested resource - tomcat - restangular

I cannot understand why it doesn´t work. When I use postman, the process is ok, perfect. GET, POST, PUT AND DELETE, but, when I use restangular, GET works, but POST, PUT and DELETE doesn´t. by ...
1
vote
1answer
12 views

Redirect on all routes to login if not authenticated

How can I redirect to the login page if someone tries to hit any other route when they are not authenticated? Is there a "best" way to do this in Angualr? Seems like a common problem but I can't seem ...
0
votes
1answer
16 views

How to integrate an AngularJS service with the digest loop

I'm trying to write an AngularJS library for Pusher (http://pusher.com) and have run into some problems with my understanding of the digest loop and how it works. I am writing what is essentially an ...
0
votes
1answer
10 views

Issue with “npm install” after setting up AngularJS project with Yeoman

My issue appears after (or even during) the creation of the angular project with the command: yo angular during the process of installing all the devDependencies from the package.json ("npm ...
0
votes
2answers
10 views

Foreign Key for select drop down

So I have data Foo that has a field for bar_ID. I'm looking at https://docs.angularjs.org/api/ng/directive/select and I'm not sure how to populate/preselect an option by value and set the model by ...
0
votes
0answers
11 views

textAngular: How to create a custom button for the textangular toolbar to insert html

Essentially I want to allow the user to have the option to insert © into the textangular editor (http://textangular.com/), however I am having trouble understanding how to add functionality to my ...
0
votes
0answers
9 views

Using AngularJS Html5Mode with Wordpress

I'm trying to work with angularjs html5mode in wordpress, but this option causes the page to be refreshed. Does anyone know help me? I've tried using and But nothing. Can Anyone helps ...
0
votes
1answer
10 views

setViewValue in directive on input not updating actual visible input value

I've been fighting with this for almost two days. I hope you guys can help me. Summary: I have problems setting the view value of some input fields programatically. I have a form with inputs whose ...
0
votes
0answers
7 views

AngularJS + KendoUI: Using the ProgressBar with the Grid

SO... I want to use this: http://demos.telerik.com/kendo-ui/progressbar/angular With this: http://docs.telerik.com/kendo-ui/AngularJS/the-grid-widget We already have the Grid implemented and ...
0
votes
1answer
15 views

Angular: Drop Down Item active based on model dependency

I'd like the active state of items in one drop-down list to be contingent on properties from a second model: angular.module('mainApp') .controller('MainCtrl', function($scope) { ...
0
votes
2answers
17 views

Set a selected option of a dropdown using angular bootstrap select

Im trying to set an option with angular bootstrap select(in my example I use a simple button), I update the ng-model and I can see the select changes, and quickly return to the default value. This is ...
0
votes
0answers
15 views

AngularJS $http / .NET Web API - Either Getting 400 (Bad Request) or NULL POST Action Method Parameter

Here’s a brief (as I can make it) description of my problem, along with all relevant code. I'm hoping the wording for this post will be a bit clearer than my previous request for assistance. I have ...
0
votes
0answers
18 views

Best approach for logging client side events (javascript) to server side (java) [on hold]

In our AngularJS project we would like to log certain events and errors to our Backend. On the backend side we use Spring MVC on Tomcat. What is the best approach for this? I am looking for something ...
0
votes
2answers
17 views

Foreign key usage in Java with Hibernate

I am trying to develop a web application and I was wondering if there is a way to utilize a foreign key without writing a lot of code. My Trainees.java @Entity public class Trainees { @Id ...
0
votes
0answers
8 views

Issue with angularJS scope using ampersand

I am trying to create a scope variable to pass in the function from the directive by using '&'. But this is not working. Can someone help me on this. My code sample is at link ...
0
votes
1answer
27 views

Incrementing in angular

I have json in my controller (will be moved) that is basically: id, questionName, answer. I want to show each question in the code below. One question at a time. Upon clicking on the A links for ...
0
votes
0answers
12 views

Why compilation clears input when validation state is changed in Angular?

I'm trying to implement a solution which would allow to display a list of violations for the field which mouse is over in a form of a tooltip (if any). I'd like to use the data-tooltip-html-unsafe ...
0
votes
1answer
18 views

Two-way binding in an angular directive leads to loop

I have a directive with a select in it. Here is a cut-down example. Note the real code has more moving parts and some logic. app.directive('numberPicker', function() { return { restrict: ...
0
votes
0answers
4 views

Show iframes in angular-xeditable editables

I'm using angular-xeditable, here is my editable element: <div class="like-pre" editable-textarea="question.answer" e-rows="10" e-cols="40" onbeforesave="validateFaq($data, 'answer')" ...
0
votes
0answers
10 views

error in connection the socket.io from different server

I am making a mobile app with node.js REST API as backend and Angular as frontend both will be on different server. the angular app will later be on attached with phonegap to make it hybrid App. I ...
1
vote
1answer
9 views

Watch all elements of an object except one

I have a watch in my code scope.$watch(foo, function () { ... }, true); This ensures that if any attribute in the object foo changes then this watch will be called. I want to make an exception ...
0
votes
1answer
11 views

ui-sref and variable state parameter names

I want to render a link such as: <a ui-sref="myState({myKey: 'my variable type value'})"> where state name myState and key myKey are variables. Is there a way to accomplish this?
0
votes
0answers
17 views

angular data-tables, filtering from ajax

I am using the andglar directive data-tables (http://l-lin.github.io/angular-datatables/) to bring in and display some information in table form and I'm trying to add a little bit too it. I am just ...
0
votes
1answer
15 views

AngularJS select directive not working in jsfiddle

I was playing around with some jsfiddle examples and changed it for some tests. Unfortunately it is not working anymore and i have no clue why. Can anyone have a quick look at this fiddle and give me ...
0
votes
0answers
20 views

AngularJS: Can angularJS route parameters be assigned to multiple values?

Assume the following route provider: myApp.config(['$routeProvider', function($routeProvider) { $routeProvider.when('/multivalues/:value/:value/:value', {templateUrl: ...
0
votes
1answer
10 views

Why does angular $compile a form not give me the named elements?

I have a very simple test case, yet I cannot access the elements via the scope. var app = angular.module('app', []); describe('testing directive form', function() { var form, scope; ...
0
votes
0answers
29 views

Promise doesn't get resolved in route before controller got instantiated

I'm trying to get the needed data directly in the route, before the controller which is going to render the view got instantiated. For instance: angular.module( 'mean.characters', ['ui.router', ...
1
vote
1answer
16 views

Prevent default event and resume afterwards (angularjs, jquery)

I want to create an alngularjs directive for restricted actions of my web site. For example I have an anchor which would trigger a route change in angular, but before that I wanna show a modal login ...
1
vote
0answers
10 views

How to check if print dialog is open (Mozilla and Chrome)

I have angularjs application and try to print PDF file from web service, PDF has build in javascript function to show print dialog. When PDF document is loaded in iframe tag <iframe ...
0
votes
0answers
11 views

AngularJS UI datePicker always one day off

Im using AngularJS UI datePicker on a app, there are three date inputs on a form. No matter what date is selected and saved, the day is always one day ahead. I have tried every combination on date ...
0
votes
1answer
23 views

Why is $watchGroup calling it's callback twice?

I have a set of drop-down lists that I need to monitor. Once the drop down lists have had a value selected that isn't undefined (i.e, a default value), then we should fire off an ajax request using ...
0
votes
0answers
22 views

How to disable matching class attributes to directives in Angular JS

In AngularJS there are four styles of declaring a directive in a template (see AngularJS API: $compile): Element name: <my-directive></my-directive> Attribute: <div ...
2
votes
1answer
30 views

Image uploaded correctly but not updated in the view until refresh

I'm working on an AngularJS app, and I'm fighting with the upload of the avatars. The upload works just fine, but once it's done, the view isn't updated if the new file has the same extension than the ...
0
votes
0answers
7 views

Getting nested resources while getting the index (all)

I am using angular-nested-resource on a RESTful API. var organizations = nestedResource("/api/organizations/", { getAll: {method: "GET", isArray: true}, create: {method: "POST"} }); ...
1
vote
1answer
18 views

Guidance on unit testing REST call in controller returning a promise

I'm able test - $scope.dvModel = DienstverlenerDetailService.query(); - accordingly. I cant figure out how to test the commented-out lines. Sure could you use some guidance on that. ...
0
votes
0answers
15 views

how to send and access data using angular ui- router state config file

I'm planning to send data throught state configuration rationale: There are some states required full screen mode and I can not place the logic in controller as this will apply to all other section ...
2
votes
1answer
22 views

$watch 2 ng-repeat instances

I have 2 ng-repeats in my code, and i would like to call a function when both of these ng-repeats have completed their loop. It's actually the same repeat twice but with a different filter applied. I ...
-4
votes
0answers
14 views

Buy Theme and start customize it and add ajax back-end calls [on hold]

Sorry for the really general question - I'd like to buy an admin design - there are many great out there. Some of them, don't contain any readiness for working with back-end server, and some added ...
1
vote
1answer
19 views

{{numPages}} not being calculated by pagination directive

I was under the impression with the pagination directive that the {{numPages}} value would be calculated by the directive. It isn't returning anything for me. Is there anything I am missing to get ...
0
votes
0answers
31 views

How to make a PUT call with a GET call as the promise

I have a modal with a form that has 3 options, Save, Update, and Email(PdfSharp). I need to be able to change something in the form and have that change show up it the Pdf. Right now I need to make a ...
0
votes
0answers
16 views

ng-repeat store seperate values

I want to store the users vote's inside a cookie, the problem is that inside the ng-repeat I have a value called session.upVoteCount. But it is supposed to be a seperate value for each event list ...
0
votes
0answers
13 views

Canvas object says undefined getContext() method in Angular JS/iONIC?

I have been working on ionic Framework to develop a hybrid app.The app requires Signature plugin ,I have seen JSignature&SiganturePad had nice implementation.but both of them implemented through ...
1
vote
1answer
23 views

how to use ng-click on a li to hide its ul parent

I have a list refreshing with results in my li elements : <ul ng-init="visible = true" ng-show="visible"> <li ng-repeat="suggestion in results" ...
1
vote
2answers
24 views

HttpContext.Current.Request with Angular ui-router

Using Asp.Net I am capturing the request of an AngularJS Route as it loads. The route is /FST/#/quickstart. I am trying to capture that route with: var currentUrl = ...
2
votes
1answer
32 views

Very Simple AngularJS $http POST Results in '400 (Bad Request)' and 'Invalid HTTP status code 400'

I have a very simple .NET Web API hosted in Azure, with two very simple methods: [EnableCors(origins: "http://simpleapiearl.azurewebsites.net", headers: "*", methods: "*")] public class ...
0
votes
2answers
36 views

Angular how to JSON array values into existing scope?

I'm trying to push some JSON data into scope for list whiteout (after tap on load next items btw) to append on the and of the list (Using Ionic framework and infiniteScroll) Could somebody tell me ...
0
votes
2answers
16 views

Not able to get the content of model in multiple controllers AngularJS

Hope, my question itself, conveys what I am look for. Will put the words in detail 1. Created the Module. var ang = angular.module('myApp', []); I have a controller called controller1, and ...
0
votes
1answer
29 views

AngularJS Count - How many times x.status == 10

I have 3 diffrent status. 10, 20 and 30. I want to count how many times x.status == 10 and then show it I thought something like this count="x.status" where="x.status == 10" count :{{value}} ...
0
votes
1answer
15 views

How to Check $http.post() query result using POSTMAN

I have $http.post request and it works fine. $http.post("api/orders/", $scope.order).success(function(data) { } Where $scope.order = { "order_id": "14", "user_id": "10", ...