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)

0
votes
2answers
15 views

Angular returns [object Object]

my Angular code returns [object Object]. I am calling 2 controllers on different pages. First one sets the data on ng-click and the second one gets (displays) the data. Here is the code: Angular App ...
0
votes
0answers
15 views

AngularJS: Update array after submitting a new object

I need to update an array after I save an object by replacing the push method. I tried to use a function instead of the push method but it doesn't work. Any ideas on how to fix that? app.controller("...
0
votes
0answers
22 views

Get object from array based on property using Lodash _.find

I have an array of objects, say memberToChange.checkboxes: ICheckbox[] like this: Now, I have a variable, say internalNumber: string which has the value "3419". I want to get the object from the ...
0
votes
2answers
17 views

Report PHP errors in JSON format complying with the regular content-type

I use AngularJs for a single page application and communicate with serverside PHP via JSON. The php header sets JSON, but the error reporting from php: php_flag display_errors 1 php_flag ...
0
votes
0answers
15 views

Angularjs component data not passing to controller

After leaving for a holiday break, I some how broke an angular component I built earlier. For some reason, the 'items' and 'panel-format' attributes are not passing the provided values to the ...
1
vote
0answers
11 views

Rails server error not clear

Using OS X Sierra I have a rails app with two parts: front-end and back-end. On back-end I am using rails 4. On the front-end I am using Angular. Whenever I have to start the server locally (for ...
0
votes
3answers
25 views

How to detect if device is desktop and/or mobile, and if connection is wifi or not with Angular

I have done some research on SO but the similar Q&A are for detecting if it has connection or not, but not about connection type. The purpose of my website is that, if a user is on mobile(phone ...
0
votes
1answer
12 views

how can “extend” html and controller in angularjs

I want to keep a menu html showing all the time. and mapaBase with their respective html and controller, too. I want to extend the functionality of controladorMapa to the inicial and movilpedido state....
0
votes
0answers
14 views

testing factory service angularjs with karma

my service (factory) like this angular.module('App') .factory('SalesService', function($http) { return { getSales: function(data) { return $http.get('/sales'); } } }) I ...
0
votes
0answers
13 views

ValidateModel error for childen classes

I am getting an Invalid request error when I try to call a PostMethod that received a model Here is my c# method [Route("update/{id:int?}")] [HttpPost] [ValidateModel] public Task ...
0
votes
0answers
15 views

CORS using Restangular

I'm trying to build an angular application with back-end on rails. The rails server is running on a remote system. I'm using Angular version 1.5.7. The rails server has the following config for CORS- ...
0
votes
1answer
11 views

karma test controller using toBeDefined failed

My test failed because it says my controller is not defined. So strange I think I did everything right. describe('homeCtrl', function() { var httpBackend, controller, scope; beforeEach(module('...
0
votes
1answer
14 views

how to decode base64 encoded data into ascii in angularjs

im getting json object from the api , in that object one field is encoded with base 64 format. after getting the response i need to decode the base64 data and need to show in the plain text. sample ...
1
vote
3answers
15 views

How to use for Each to add specific values in json

I have a json structure like, $scope.inputs.data=[{name:"sam",marks:"100"},{name:"don", marks:"200"}] How can we add all the marks using forEach.can someone help ..I was trying this way but no luck ...
0
votes
1answer
20 views

How to stop uncompiled data from being seen, without the use of ng-cloak?

I have built a web application and am trying to incorporate the AngularJS Framework into my code. I have set up my program so that I have an <input type="number"/> with an ng-model="subtotal....
-1
votes
0answers
9 views

cordovaSQLite is not fetching the recently added record

This is how i am initialing SQLlite using cordovaSQLite: this.getSQLDb = function() { if(sqlDb) { return sqlDb; } else { sqlDb = $cordovaSQLite.openDB({ ...
0
votes
1answer
14 views

How to stretch an md-nav-item angular material

How to stretch the md-nav-item element pic1 ------------------------------------------------ | ITEM1 | ITEM 2 | ------------------------------------------------ pic 2 --------------------------------...
0
votes
1answer
37 views

$http PUT call angularJS

I am trying to make put call in angular js after selecting value from dropdown selection. I already got value from selection. Just want too make put call but not able to make response. Here is HTML ...
0
votes
0answers
12 views

FileReader onload only works the second time around in browsers

I'm working on in-browser image processing with HTML5 and have a weird issue in Chrome with the onload event handler for the File API FileReader class the file is only processed properly the second ...
0
votes
2answers
25 views

What is the best way/practice to list titles of the months (Angularjs)

What is the best way/practice to include the titles of the months in html if you are making Angularjs project? here is snippet of the ugly hard-code that I want to make better: <div> <...
-1
votes
3answers
36 views

Ng-class based on value returned from controller

I have tried to set icon style based on value returned from controller,the console log showing the value triggered correctly but it seems i have an issue with Ng-class expression. Any help on this is ...
0
votes
1answer
23 views

How can I set the validity of an ng-model in a directive?

I have this oversimplified directive for getting a phone number, and I want the ng-model to be invalid if the phone number is less than 10 digits. I was testing out $setValidity but it's not says ...
0
votes
2answers
36 views

Objects are being overwritten when pushing in AngularJs

everyone. Using angularjs 1.2v. I have an array in model. The page is quite big so I will try to describe it shortly. $scope.model={ salary, position, user: [{ name:'...
0
votes
0answers
23 views

Angular/Rails issue with nesting params

I'm encountering an issue with nesting parameters in an Angular/Rails app. When the following form is submitted, email, username, and password appear to be nested together. However, when rails ...
0
votes
0answers
22 views

Checkbox valiadtion using Angular Js

I am using Angular js, in which i have a textbox and collection of checkbox. I want to check if atleast one checkbox is checked when the submit button is clicked. Below is the existing code: <form ...
-1
votes
0answers
11 views

Issues on reload after remove # from URL in angularJS

Unfortunately old developer had not manage # in the beginning of the project and he used # statically on different location for redirect etc but now i have to remove and i have remove from all places ...
0
votes
0answers
20 views

load and show binary image in anguarjs and html by address

I use Dropzone image uploader. This plugin fortunately uploaded my images in binary format and I like it. And also move file uploaded in my "/upload" folder perfectly but without extension. I need to ...
0
votes
0answers
22 views

Angular/Jasmin promise unit test not working

The following Angular controller works fine: angular.module("mymodule", []) .service('svc', function($q) { this.call = function() { return $q.when(3); }; }) .controller('MainCtrl',...
1
vote
1answer
21 views

hyperlink in the Angular App requires #! instead of just # [duplicate]

To navigate between the routes using the anchor tag if i specify the path as below it does not work- <a href="#/link1">Go to link1</a> Instead if i specify below path it works <a ...
1
vote
0answers
34 views

Node.JS and AngularJS Routes with API routes

So I am using Node.JS with Express as my backend and my servlet for API. I'm using AngularJS as my front end. Through many Google searches, I finally solved my problem of using ngRoute with ...
0
votes
0answers
8 views

AngularJS Webpage not being properly converted by Prerender.io

First of all, I sincerely confess that I am new to both angularjs and prerender. I tried to implement prerender in my angular page. My .htaccess file is as follows: DirectoryIndex index.php ...
1
vote
1answer
15 views

ng-switch not working with md-tabs

I'm trying to create conditional md-tabs using ng-switch. I know that works fine with ng-if but I would much appreciate the ng-switch-default since there isn't ng-else. Here's a example html: <...
-2
votes
0answers
9 views

Angularjs & PHP

I need a data entry form. The form field will be generated dynamically. I mean there will be a add more button to populate some rows. The fields are some drop downs which will contain the country, ...
0
votes
0answers
9 views

Post File array using AngularJS and Jersey

I am trying to post an array of files using ngFileUpload. ngFileUpload will transform the array into a FormData object using the following form: inputName[$index] = [File Object] Is there a way to ...
0
votes
1answer
17 views

How to have data synced between directive and parent scope

I know that this probably have been answered several times, and it might even be pointed out in Angular documentation, but I can't for my life understand how to do this 'correct'. I have a directive ...
0
votes
0answers
9 views

Bootstrap Modal not hiding elements marked with ng-hide in IE9

I have a bootstrap Modal which has a text field (eg. Name) with required attribute set and a div to show an error message when the input field is $dirty and $invalid. <input id="groupName" ...
1
vote
0answers
22 views

'ui-sref' of Angular UI-Router not working as expected

If I am working with href, UI Router works as expected. But, if I am using ui-sref, it is not working as expected. I have two issue with the following example: the anchors 'link-series-2-no-param' ...
-4
votes
1answer
22 views

Does API store any data permanently that is my database? [on hold]

I am creating a app what take credential from user and use that credential to extract data from a website. I think i need to use an API to do that. But I am not sure about API. So if I use a DB say ...
0
votes
0answers
7 views

How to dynamically set md-min-date/md-max-date of Angular Material md-datepicker directive?

I'm trying to walk thru month intervals with md-datepicker, therefore I created this codepen example for better demonstration: http://codepen.io/anon/pen/ygBGOg When clicking 'PREV' button start ...
0
votes
1answer
26 views

Show the second value based on the first one in Angularjs

I have a list on ng-repeat with names. I want to take this name and pass to url as parameter to take his subjects. What i have done until now is that i can pass the name and get the subjects from ...
0
votes
1answer
20 views

Send an e-mail with attachment with angularJs?

I'm using $window.open() to send an e-mail to a specific destination, but I can't send it with an attachment or embedded image. I have something like this: $window.open('mailto:[email protected]?subject=...
0
votes
0answers
12 views

Get instance of kendo ui chart widget in controller

I have a requirement to create multiple keno line charts in a screen. Below is the HTML markup <div ng-repeat="agent in chartAgents"> <div kendo-stock-chart="sales_{{$index}}" k-...
0
votes
0answers
44 views

angularjs $http.get nothing show

hi guys it's my first time i use AngularJS. here is my AngularJS code: var app = angular.module('apps', []); app.controller('foodsCtrl', function($scope, $http) { var url = 'http://localhost/...
0
votes
1answer
16 views

AngularJS select option initialize

I have this select tag: <select class="form-control" data-ng-model="contact.title" data-ng-options="title.title as title.title for title in titles track by title.title"> <option></...
0
votes
1answer
10 views

Validate controls within ng-repeat: textbox and textarea

I am using Angular js, in which i have a textbox outside and an ng-repeat containing textbox and textarea. I want to check if the fields contain value when submit button is clicked. I am able to ...
0
votes
1answer
15 views

Angular chat client - 2 views with one controller

I build chat function in my web app and i am about to create chat functionality between logged clients. Here is my screen from application to show exactly what i want to solve Screen of my app As ...
0
votes
1answer
10 views

Adding test cases for a basic controller for ng-click event using Jasmine

I am trying to lay my hands on karma-jasmine and I am working on some basic examples to start with. I have created one small plnkr which does 2 things only: Add the numbers display some hardcoded ...
0
votes
0answers
10 views

How to upload a blob file attachment to list item in SharePoint using REST API with AngularJS?

I am trying to upload a file from a HTML form as an attachment of a list item in a SharePoint 2013 list. Now, I can upload every file, but only .txt files aren't corrupted, so only .txt files can be ...
0
votes
2answers
34 views

complicated custom filter for nested ng-repeat

I've stuck for this for 2 days, tried so many ways still couldn't get it right. I can't change the API data so I have to deal with front end handling. I really need some help. $scope.stationary = [{...
0
votes
2answers
23 views

AngularJS: Exclusive error handling in $q execution chain

Having an angular service that returns promise, is it possible to detect whether a consumer of this promise handles error ? I'd like to provide a default error handling in service, but ensure that it ...