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

routeChangeStart resume navigation with equivalent to $state.go

I have to make an authorization validation during event routeChangeStart in an angular app, and the method to do it is a promise-based one. So I tried using event.preventDefault(), but I don't know a ...
0
votes
0answers
3 views

Close angular datepicker on escape

I'm using angular-datepicker in my angular App. it works perfectly fine but I'm trying to close it on escape key press but unable to do that. I've tried this solution but its not working for me. Is ...
0
votes
1answer
5 views

Second angular button not calling function

small issue and I'm probably being really dumb, but I have 2 buttons for a webpage which should contact a server. However only the first one sends a HTTP request when it's pressed. <html> <...
0
votes
0answers
4 views

Angular UI Router 0.3.2 pass state parameters to component

I want to access state parameters into component and I don't want to use "controllerAs". I have tried using resolve but its not working. Can anyone help in this? Thanks, MSK
0
votes
1answer
9 views

Store local email id of the user in mongodb without using any input type

I have an application where I store the details of the user in a mongoDb database named "userDetails". I am using MEAN stack to perform this function. As the user is authenticated using his email id ...
0
votes
0answers
8 views

show selection in div content even ng-repeat returns null

I have tried for hours but I can't set values inside my selection box even if result in my ng-repeat returns null. I have a div that ng-repeat values from json query, but when the json is null I ...
0
votes
0answers
6 views

angularjs 1 manual bootstrap doesnot work

I am new to angularjs. I tried to create 2 different modules in an single js file and them manually bootstrap one of them to a element. This was suggested in one of the stackoverflow questions. But ...
0
votes
0answers
8 views

Ionic - how to slide tabs?

I am trying to have sliding tabs like here: http://codepen.io/calendee/pen/IAjoL But my tabs just popoup without any animation. I tried to use animation="slide-left-right" but without results. I have ...
0
votes
0answers
8 views

Cannot use Bower (without proxy)

I am not being able to make requests with bower, either installing packages or searching with bower search. I tried to install a package and got the following on the terminal: bower ENOTFOUND ...
0
votes
2answers
19 views

Adding numbers in AngularJS

Just started learning AngularJS. I was trying to understand the two-way data binding by writing a code that adds two numbers from the input boxes. Here's what I have written: HTML <div ng-app="...
0
votes
1answer
11 views

How to access HTML input FileUpload FileList object using AngularJS?

I want to access the value of the FileList object when I Choose files using HTML input FileUpload. When I console.log this FileList object, I can see this object in the console window but I am not ...
0
votes
0answers
8 views

Angular cancel $http request [duplicate]

I have a question about $http I am calling a function that is calling an API over $http request after every zoom change. Is there a way that I could ignore all previous requests and only use the last ...
0
votes
0answers
8 views

multiple form in one page / angular js firebase

Im using angular&firebase. i have two form in one html page , and they need to be stored in different root. so I made two factory "chatMessages" - which need to be stored in "user/david030/...
0
votes
0answers
3 views

How to connect angular app to stack exchange api using oauth

Here is the story it been now days am looking to do this but i can not find anything; How on earth do you connect your angular app to the stack exchange api using oauth ? All i am asking is a hint for ...
0
votes
2answers
15 views

How to call a function on selection of date in html5 and bootstrap picker

I had a html5 input field of type="datetime" which shows a date picker.Now on click of any date in the date picker,I want to call a function. If Iam using ng-click ,it is getting called once i click ...
0
votes
0answers
5 views

Leaflet Label is not changing its position immediately after using leafletData service

I have a leaflet directive and I've added some markers to it through extending the scope with markers array. $scope.markers.push({ lat: lat, lng: lng, icon: $scope.bookedIcon5, ...
0
votes
0answers
5 views

Cordova onsen UI page transition animation

I have created an cordova onsen ui application , i want to add the native page transition look like ios now i am using the code to move over another page by $scope.gologin = function() { menu....
-2
votes
3answers
25 views

How to check empty condition for an object

I have an object like below but i am not sure how to check the empty condition My object, "general_info" : { "parents_name" : "", "date_of_birth" : "", "second_day_attendance" : "", "...
0
votes
1answer
9 views

Chrome's plugin CORS Toggle doesn't work using POST/PUT/DELETE method

I already solved the problem: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'file://' is therefore not allowed access, a problem of CORS, and I solved installing ...
0
votes
0answers
9 views

Routing working locally, not on Heroku servers

My AngularJS application won't route to /login when accessing /login directly. It will route to /login if I first access / then route from / to /login. It is working on my local environment but not ...
0
votes
0answers
7 views

API is showing empty value if i click search button for the second time in Angularjs

am working on angular. Am working for front end and integrating the API for post method in search criteria, everything works fine except this . When i click the search button for first time i get the ...
0
votes
0answers
10 views

how to blank value of datetimepicker in angular schema form

I am trying to blank datetimepicker value on condition check in angular-schema-form.. but it is not working here is my code.. { 'key': 'hasHabit', 'title': t.hasHabit.title, ...
0
votes
0answers
15 views

CameraService.takePhoto is not a function

I have created a CameraService, which lets the user take photos and get pictures from the gallery for use in my mobile application. The idea here is to make this component of the application reusable ...
0
votes
2answers
17 views

Enabling CORS in Ionic for a PUT/DELETE Request

For my Ionic app I'm using an API that I created that I can make simple HTTP requests to. In my API I enabled CORS by adding the following to server.js: //ENABlE CORS app.use(function(req, res, next) ...
-2
votes
0answers
7 views

make sure mongod is in your $path

i trying to learn angular js...for which i need to install deployd ...but i am not able open the dashborad it says make sure mongod is in your path...
0
votes
0answers
7 views

using stackexchange api key with angularjs and oauth

I am currently capable of making http.get request to the stackexchange api. BUT my app is not connected with a key. And i would like to accomplish it how can i do this ?Please help any suggestion is ...
1
vote
2answers
35 views

LoDash check if object one and two value are equal if so compare

Can I do that better with LoDash? I want to check if the first object id is equal with the second one, if so it should add something to the first object from the second one. Here my current solution: ...
0
votes
0answers
20 views

session is not working with angularJS

Hi I'm new to angularJS and PHP, I'm trying to maintain session between two pages and the code as follows, Index.php <?php session_start(); if(!isset($_SESSION["id"])) { $...
0
votes
1answer
32 views

Angular + PHP: Simplest way to POST an object?

I'm studying php and angular. Currently exploring the possibilities to send data to server side using $http service. This is what I came up with and it seem to work, but it doesn't look elegant. ...
0
votes
0answers
9 views

Upload file cross origin using ngFileUpload

I am trying to upload files using ngFileUpload cross origin but I am getting this error: angular.js:12011 XMLHttpRequest cannot load htp://localhost:3001/upload. Cross origin requests are only ...
1
vote
2answers
15 views

angularjs factory internal functions not factory dependend?

I'm trying to have 2 classes (factorys) in my Module angular.module('starter.services', []) .factory("TPreferences",function($cordovaSQLite){ _set = function(pName, pValue){ console....
0
votes
1answer
9 views

How to get select item from md-select angularjs

This is my code to fill select list. <md-option ng-value="brand.name" ng-repeat="brand in brands">{{ brand.name }}</md-option> </md-select> I want the brand user select should ...
1
vote
0answers
18 views

multiple textboxex and insert query in angularjs

I am creating a web app in which i need to enter location and areas as of now i want 10 textboxes with ng-model="area" @{ for (var i = 0; i < 10; i++) { <p><...
0
votes
0answers
10 views

How to get modified filter value in ag-grid

i just started ag-grid, I have created grid with employeename and employeeno as column fields in grid,in grid employeeno column if filter get modify or selected need to get selected employee from ...
0
votes
0answers
12 views

How can I change data in ngTable without calling getData?

I need to change data on-the-fly with an ngTable without asking the data to the service API. Suppose I have this call when I route in the controller: vm.tableParams = new NgTableParams({ count: ...
1
vote
2answers
20 views

Select is not updating when ng-model is changed

I have code like this: <select ng-model="mode" ng-init="mode=10"> <optgroup label="Serif"> <option value="0">Normal</option> <option value="1">Bold</...
1
vote
2answers
21 views

Can Angular have more than one template per component?

I'm going through the Angular tutorial and can see the usefulness of having a component with more than one template. e.g. here's a component with a 'full' and 'min' template import { Component, ...
0
votes
1answer
12 views

Jquery/Angular Show/hide columns depending on value stored in local storage

<div ng-controller="checkBoxController"> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-...
0
votes
0answers
11 views

Null value then pass parameter to WebApi from Angular controller

I have a file .js that write my angualrjs functions according to the : var perAp = angular.module('perAp', []) perAp.controller('personController', function ($scope, personService) { infoPersons(); ...
0
votes
3answers
21 views

Convert image extracted from URL to base64

I am fetching the user's Facebook profile picture whenever they login via Facebook. I want to convert the image to base 64 from the URL. What would be the best way of doing this, while ensuring that ...
0
votes
2answers
16 views

Html To Pdf conversion in angular js

I am trying to convert html to pdf. Is there any custom directive, which i can use.I also tried to use angular-save-html-to-pdf from npm site but there is some error while using. Is there any other ...
0
votes
1answer
13 views

Combine Ionic `onHold` and Angularjs `ng-click` to select element

In my current ionic App, I have some box that I want to select them exactly in the form of select chat in Telegram, That means: 1. At first I start select box by OnHold gesture in ionic, This ...
1
vote
0answers
17 views

how to post headers.authorization value in db node api

I am creating and set the user token in cookie at the time of loggin. and checking user authorization in API like below: apiRoutes.get('/authentication',function(req, res) { var token=getToken(req....
0
votes
1answer
13 views

Login using facebook got permission issue?

I'm using Azure mobile service to login an Angular/ionic app using Facebook. client.login("facebook").then(function (data){ console.log('logged in succesfully..') $state.go('menu.events'); },...
0
votes
2answers
23 views

Download file via sucess function

I have a success function which hits the server, send a list of data process it and create an excel file on the processed data. The whole code is working fine but I cannot download file. File is being ...
-1
votes
0answers
8 views

How to use api key of stackexchange api in angular

I am using the stack exchange api. But i dont use the api key provided. How can i use the key. I have tried to write a code but i dont know where to start, can u please tell me where to start. I am ...
0
votes
1answer
12 views

ng-click doesn't call the function in ionic?

The ng-click in the following template code doesn't invoke the function loginFacebook() in the controller? The text 'loginFacebook...' is not printed in Javascript console. slogin.html <ion-view ...
2
votes
0answers
12 views

lazyloading ngTable using ocLazyLoad

In one our projects we're trying to write a wrapper around ngTable library! in this component's controller, we're loading ngTable using ocLazyLoad. Here's what we've written: Datagrid Component (...
-1
votes
0answers
10 views

How to Send email with PDF attachment using Angularjs

I am new to AngularJS. I want to create an angular application which takes a questionnaire / survey and at the end generates a pdf of the survey taken and send email with pdf attachment to the person ...
1
vote
4answers
29 views

Angular not updating Service variable

Following is the code that makes an http request to MyApp's API for user profile data(like name, photo) to update the navbar. var app = angular.module('MyApp', ['ng']); app.controller('...