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

communicate between 2 different controllers

I have an angular app where we have 4 different pages.Each page has its own controller. There is an home page which has a controller which routes to each page and its controller using when('/a',{ ...
0
votes
1answer
6 views

nodejs get request from mongodb returning undefined

I'm trying to build a small web app as I try to learn MEAN stack web development. I have a running mongoDB db executing a db named 'contactlist', this list will then be accessed by a nodejs/express ...
0
votes
0answers
12 views

Sending a DELETE request with Restangular

I'm trying to send a HTTP DELETE request with restangular without any parameters or headers. The endpoint just returns a NO_CONTENT (204) status if successful. I've tried the following: ...
0
votes
0answers
6 views

angular: view not being updated when data changes in another controller

Basically it's simple, but I can't make it work. Note: using ionic. I have: a view and controller for pre-defined Playlists a view and controller for UserPlaylists. a ionic popover for assigning a ...
0
votes
0answers
5 views

scroll not working on reload of directives angularjs

I have a directive with scroll event. It works fine when the directive is first loaded.But when the directive is loaded again it never calls the scroll event. And it also works when I bind the scroll ...
0
votes
0answers
4 views

Logging into Auth0 with Angular 2

I am following a tutorial for logging into Auth0 in Angular 2. There are some difficulties here because I am using the A2 CLI and he is not, which means that our code is not necessarily going to be ...
0
votes
0answers
5 views

Angular2 is this the right way to use Observables?

How does the 'subscribe' and 'unsubscribe' work with Observable in Angular2? My architecture is as following: CRUD(Repo) service that contains CRUD operations and returns an Observable In-...
0
votes
1answer
9 views

How to select an Angular 2 Array Object from JSON

I am very new to Angular 2, and I am having trouble with what I feel is a small, but frustrating problem. I am building a SPA with two main pages, the admin page and the actual app homepage. The ...
-1
votes
1answer
11 views

Store JSON file contents on load

Right now, I have a factory which loads a JSON file. angular.module("app").factory("RolesFactory", ['$http', '$q', function($http, $q) { var d = $q.defer(); $http.get('events.json').success(...
0
votes
2answers
10 views

Angular service not exposing value as expected

I'm having a problem getting at values in my service from the controller. My service looks like this: angular.module('someApp').factory('someSvc', SomeSvc); function SomeSvc($http) { var colors =...
2
votes
0answers
28 views

Passing data from DOM to scope not working angularJS

I'm killing myself on one thing : I'm trying to pass an object from the DOM to my controller. In this object, there is an array of objects which contains n values. But when I got it in my scope ...
0
votes
1answer
9 views

Create authentication in another AngularJS module

I have doubts on how to create a login page for the template BlurAdmin. The Template has the index.html as masterpage. It has header, footer, sidebar, ... and the pages are loaded as template (ui-...
0
votes
1answer
8 views

Integrating angular js with existing javaScript code

We are working on pure javaScript project, which could really benefit by using angular js but it's a huge project and re-writing the whole project in angular is not an option . Does anyone have any ...
0
votes
0answers
15 views

How to pass value between controller and config in angularjs

I am trying to pass variable to anular js config, This is my js app: var app = angular.module('myApp', ['ngMaterial', 'sasrio.angular-material-sidenav', 'ui.router']); app.controller('baseController'...
0
votes
0answers
7 views

Data is not populating in the ngTable

Iam new to angularJS. Iam tring to implement a table with pagination using ngTable. Initially I tried with ngTableParams injection ('n' is lowecase), it was not supporting in the angular at all. ...
1
vote
0answers
21 views

Dynamically change child element order in Angular ng-repeat

Background I have an angular table directive where the user can customise the column order (via drag and drop). Data rows use the ng-repeat directive. <table columno> <tr> &...
0
votes
0answers
4 views

Angular 2, iOS safari Error: eval@[native code]

I have a node/express/angular 2 app. Loading the app inside desktop safari/chrome works just fine. NO errors. However, if i then try to boot it into iOS Safari mobile browser, i Receive: Error: eval@[...
0
votes
1answer
21 views

Why won't promise resolve in a service?

I have a factory NewEditSvc where I'm trying to share functionality common to NewCtrl and EditCtrl. One thing I'm trying to do is get feeParameters from the server inside the service but this is not ...
0
votes
1answer
9 views

Angular UI bootstrap typeahead ng-model says null when clear the filed

The filter works very well, but unfortunately the {{filterlist.name}} says null once removed the typed text and also tables looks empty because of null Demo: https://plnkr.co/edit/...
0
votes
0answers
8 views

In AngularJS v1.4.8 pass Anonymous function as a parameter to function in ng-init

Trying to store a call to an anonymous function via ng-init. ie <div class="container-fluid" ng-app="AVF" ng-controller="ConfigController" ng-init="RegisterInitFunction(function() { $scope....
-1
votes
0answers
11 views

Can't display image with localhost angular2

So the thing is that i did an file uploader on angular 2 to upload pictures and then send them to my data base on mongo. I post my images via http to this url : http://localhost:3000/api/rule/upload ...
0
votes
1answer
21 views

ASP NET MVC 4: How to return a file from a controller to view with angularJs?

I want to download a file from the server, but I don't understand what I'm doing wrong. I've been searching how to do it, but doesn't work. This is an example that I found: Controller (ASP NET MVC): ...
0
votes
1answer
38 views

How to assign variable to json property?

I have data from server that i want to add it to json property but its not displaying , I understand json except only primitive types but how can i add data dynamically to json property ? Foe example ...
-1
votes
0answers
10 views

Roles in angularjs with webapi

I'm using windows authentication on a WebAPI application. The login is handled by the browser. I want to add role based authorization to the angularjs application. So I'm just interested in: a) ...
-1
votes
2answers
27 views

Why do I get undefined for response.name?

I have looked through all the related StackOverflow pages and nothing seemed to work for my situation. I tried to console.log(response) and it just said Object Object. I am unclear why I am getting "...
1
vote
0answers
11 views

How to migrate from imports using <script> to module bundler?

I have a project which uses angular. For some reason there were no task manager/dependency manager and all libs are stored in repo and inculuded using plain old <script> tag like <script src="...
0
votes
0answers
23 views

Select checkbox from array values in AngularJS

I have created a page which contains some text boxes, radio buttons and check boxes. I am using this page to save new data or edit the existing one. I am able to save new data but for editing the data,...
0
votes
1answer
24 views

How to obtain id from array of object using angularjs?

I am trying to get id from array of object but $scope.data.id is coming undefined any idea what is implemented wrong or any better angularjs way to get data from array object ? data [{"_id":"...
0
votes
1answer
16 views

How to filter using regex in ng-table?

I'm using ng-table how can I search using regex instead of string?
0
votes
0answers
12 views

Use .NET bundling & minification feature in angularjs - index.html

I have a web site with angularjs framework for front-end using index.html and .net REST API services. I need to achieve something one of followings: 1. I can create a dummy MVC view and write @...
0
votes
1answer
11 views

inject utility services to jasmine test

This question is not about including a service to test or to provide a mock that replaces a service. Situation: The Factory I'd like to test is about parsing a set of properties and provide this ...
0
votes
2answers
31 views

Angular - how to force a radio to be checked on page load

Simple question I hope... How do I enable on page load that the first radio is checked with the html below? <div class="app-margin-bottom app-margin-left"> <...
0
votes
3answers
21 views

How to pass data from one view to another with Angular

I need to pass data between views. I have a view where you check items and then another view where those items you can check get put. The problem is you lose all data when you redirect to another page ...
0
votes
0answers
11 views

Angular multi-step form with UI router

How do I do this except using child forms instead of one form across multiple states. I need to be able to validate every step at the end as well as in the moment, that example doesn't do any kind of ...
0
votes
0answers
21 views

Why we need var object in AngularJS to post it to server(REST)?

I try to post object to server. I try like this and it work: $scope.add = function(pregled) { var pregled2 = pregled; pregled2.vreme= $scope.parseDate(pregled2.vreme); ...
0
votes
0answers
15 views

Firefox ignoring option selected attribute

I have a dropdown menu that is running of off an ng-option directive as well as containing a default selected option. In firefox the option marked as selected is not populating the dropdown on the ...
0
votes
1answer
7 views

How to use custom templates with Angucomplete-alt?

I'm working on a front-end application with ES6 and Angular. I'm trying to create a searchbox with autocomplete, and I want to use a custom template for the options list using Angucomplete-alt. I ...
0
votes
0answers
18 views

How to call a function that is defined outside the scope in an Angular expression

Is there any way to call a function that is defined outside the scope in an Angular expression? Suppose that I have an external file that is bundled via Browserify: var dateUtils = require('./date-...
0
votes
1answer
25 views

Regex match exact word

I have two inputs for registration part of my project: password <input type="password" ng-model="userData.password"> confirm password <input type="password" ng-model="userData....
0
votes
1answer
28 views

AngularJS scope variable not being set within promise

I have this code that I'm using with CartoDB. It's suppose to run a query using their JS library and then return some data. I'm adding up some results and it works inside the done() function. Though ...
1
vote
0answers
11 views

ionic - unable to print title on navbar

I am working with angular and ionic and i'm currently not able to print ANY title in the navbar. I have a quite complex setup with multiple nested views. Here's the list of states: state('app', { ...
0
votes
1answer
17 views

How to get the value of an attribute of an array in AngularJS

I am new to AngularJS. I am getting data from SQL to AngularJS. I am able to display the data in ng-repeat but I want to get the value of a certain attribute of the array that I am passing from the ...
0
votes
1answer
17 views

Angular material datepicker don't select the date that I choose

Angular material datepicker don't select the date that I choose insteadI always get the sysdate in the angularjs controller even if I select another date. What I'm doing wrong? My controller: ...
0
votes
0answers
10 views

Inject dependencies makes loading heavier?

I have been copying and pasting code from others controllers and some of them have dependencies which I wont use in these new controllers. My question is, if I leave this injections, will they make ...
0
votes
1answer
14 views

disabled select tag with selecting option from another select tag with angularjs and ng-repeat

I have two select element and I want to disable one select tag by selecting a particular option from another select. Here is the HTML: <select name="" ng-model="round.evaluation.availability" ...
1
vote
0answers
19 views

How to get Cookie value Without page refresh in angular js?

Am done login using Popup,After Checked username and password correct means to set the username,type and id in cookie , once page refresh only i get the Cookie value,I want to get the cookie value ...
0
votes
0answers
12 views

Angular Translate a static page on button click

I'm experiencing quite an annoying difficulty that seems like something that should be very simple to do. I have a login page, where I'm supposed to present a user with an option to choose a ...
0
votes
0answers
10 views

Angular socket io integration

I am new to Socket.io, and want to integrate sockets with angular so I can authenticate an access token and fire when a certain event has happened. Here is what I have so far: angular .module('myApp'...
0
votes
2answers
22 views

How to style angular ngBind currency

I am trying to make that with angularjs and css: Basically, the decimal part of the number should be in the upper right corner as you see in the image. I know that, with ng-bind we can make it ...
0
votes
0answers
5 views

WCF Rest connectivity from angular in .NET

When calling from wcf rest service ,it throwing error 'Failed to load resource: the server responded with a status of 404 (Not Found) localhost/:1 XMLHttpRequest cannot load http://localhost/posweb/...