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

set attribut on ng-click doesn't do anything

I'm trying to generated multiples div dynamically but adding a ng-click attribute doesn't work. Here's my code var div = document.createElement('DIV'); div.className = 'container-car'...
0
votes
0answers
7 views

Removing attributes from angular custom directive

I have a custom directive with isolate scope and = bindings that just wraps a control specified in a template and maps attribute values onto it. In order to avoid blank attributes on the wrapped ...
0
votes
1answer
42 views

AngularJS || Ignore ngBlur on element blur when executing other function that does blur

While developing I have encountered an issue of firing blur two times, when i need to fire it only once. Both ng-blur and ng-enter final actions are to make request to database, in our case 2 ...
0
votes
0answers
6 views

How to get rid of Horizontal scrollbars when using grouping in ui-grid?

These are what I have tried in the grid options. They seem to not work at all. // enableHorizontalScrollbar: uiGridConstants.scrollbars.NEVER, ...
0
votes
0answers
8 views

Cannot display database data in AngularJS project via MySQL

I followed code at https://phpcmsforce.wordpress.com/ but I cannot seem to make the data display. Please tell me if I am missing something! index.html: <!DOCTYPE html> <link rel="...
0
votes
1answer
8 views

Object with uid key in Angularfire

I'm a few days Firebase user and I tried to make function that creates an ordinary user(works), then add related to him node with his UID as a key in /users in database to store more info about user ...
0
votes
0answers
6 views

AngularJS file upload with ngf - upload of outlook .msg files

I use this AngularJS directives in order to upload files and it works very well for the most file types except Outlook *.msg files. Does anyone know what I have to declare for ngf-pattern and accept ...
0
votes
0answers
21 views

How do i loop nested data with unknown depth in angular

I'm currently working a project and would love to make it as dynamic as possible. I'm having problems because I won't know the depth of data and I would like to display it all at once. This is a ...
0
votes
0answers
21 views

angularjs changes in promise data not reflected in HTML

I'm using AngularJS to build a web application. I have written a service which contains a method called getMatchedMenuItems(searchTerm) The goal of this method is to connect to a REST API, retrieve ...
0
votes
0answers
22 views

Unable to change ng-href onClick event

I have a footer with a button in my angular app. The button has an ng-href attribute which should change during the ng-click event to affect the routing mechanism. For some reason I cant make this ...
0
votes
1answer
18 views

How do I use the factory pattern if I'm migrating from Angular 1.5.8 to Angular 2?

If I'm migrating to Angular 2 and I want to use the factory pattern to create a transient dependency (a dependency that doesn't share state between components in which it gets injected), what is the ...
0
votes
1answer
6 views

AngularJS Angular-Route on Ubuntu changing routes /#/ -> /#!/ links not working

Project works fine locally. However after deploying it to an AWS Ubuntu instance, the routing does not seem to be working. The home page of, www.lewisengelart.com/#/ loads with a bang as, www....
0
votes
0answers
10 views

Trying to write Error Message showing work in Model instead of Controller

Model Code This is about sending request to API to do authentication. myApp.factory('UserModel', ['$http', '$cookies', function($http, $cookies) { var UserModel = []; UserModel.doLogin = ...
0
votes
1answer
15 views

How to get updated value for isolated scope using angular directive?

i have a directive that is making xml pretty for browser when first time page loads it gets the string value. but when value change dynamically string is not being updated xml remain same. Any idea ...
0
votes
1answer
8 views

AWS S3 Base64 File Upload Not Working From iPad or Android, but Is Working From a Laptop Safari or Chrome

I have an ionic/angular js web app that uploads a file to django rest framework via base64 encoding. The file then gets saved to an AWS S3 bucket with the help of the django-storages(1.5.1) library. ...
0
votes
1answer
15 views

Static files for Angular/Express app not showing up on heroku but working locally

I have all of the static files in a directory called 'public' which has an index.html file. However when deployed to Heroku the css and javascript files in the public directory are not there. I get ...
0
votes
1answer
23 views

Using Angular, when should I use ng-model as opposed to binding to a property?

I am building a directive that I will be using in several places in my application. It is a combination of a multi-select field and type-ahead. To pass data back and forth to the multi-select portion, ...
1
vote
0answers
16 views

Resolving relative $resource path in Angular 1.5

My Angular 1.5.8 web application is at http://www.example.com/foo/ and my RESTful list of bars is at http://www.example.com/foo/api/bars. When ui-router goes to the list of bars in Angular, my browser ...
0
votes
0answers
10 views

Angular components built with ES6 classes and the extend keyword causing Unknown provider error in IE11

Currently an angular 1.5 client I am using is throwing lots of unknown provider errors on IE11. I've currently narrowed down the problem to the use of the 'extends' keyword in our component files. ...
0
votes
0answers
5 views

angularjs ng-options with angular-ui-select

Argh, this again. I have a list of objects: var roles = [{ id: 1, name: 'Administrator' }]; I am using ng-options and I want to display the name and when selected, it should use the name, ...
0
votes
1answer
14 views

Angular shared service returning null to controller

I am trying to share data between 2 controller in AngularJS. The data is loaded via a ajax call. This works fine inside the NavCtrl but when calling CommonBoardService.getSharedData(); from the ...
0
votes
0answers
43 views

My ng-click is not firing

I'm new to Angular, so please bear with me. I have an app I'm building where you can hit an "X" or a heart to dislike/like something. I'm using a swipe library called ng-swippy. I'm trying to use ...
0
votes
0answers
14 views

ngResource: accessing nested data in the controller

I have created voting function in controller and after i switched to retrtiving my data via $resource clicking on upvote throws "$scope.question.activities[index] is undefined" in the console. ...
0
votes
0answers
5 views

How to load a image from www/img/ and convert it to base64 (Angular/Ionic)?

I'm running an Ionic project and I need to use a social share plugin. However, to share an image it must to be as base64. How do I load a image from www/img/ and convert it to base64 using ionic/...
0
votes
0answers
9 views

Unable to connect to the <video> element in a youtube iframe

So, I'm trying to use the Web Audio API's createMediaElementSource() method to connect to the video element in a youtube-provided iframe. I want to collect and use the audio from the provided video as ...
0
votes
1answer
11 views

How to use the request key while making http request to stackexchange api Angularjs

I have a request key but i do not know how to use it while making an http request. can someone give me an example. here is my code for the moment : function getQuestionLinks(tag) { return $q(...
0
votes
0answers
9 views

Using rendered property with uibmodal throws error

When using rendered in my modal angular throws error on modal.results, saying modal is undefined. what am i doing wrong thanks in advance!! I use querySelector to get the modal dialog so i can set ...
0
votes
2answers
23 views

AngularJS constants with some logic

I have the following block of Constants in my AngularJS App // Constants .constant('config', { appName: 'MyApp', appVersion: 1.0, apiUrl: 'http://'+window.location.hostname+':8080' }); ...
0
votes
0answers
6 views

get saved value on input flatpickr angular

I have a flatpickr angular component that I use to save a date with Format: <input ng-flatpickr class="flatpickr" fp-opts="$ctrl.dateOpts" fp-on-setup="$ctrl.dateDebutSetup(fpItem)" ng-model="$...
0
votes
0answers
11 views

Upload File to ASP.net Core API using Angular

I have been searching for this for about 2 days and there are many posts about this, but I cannot wrap my head around what I want to do. What I want: I want to upload a single file to the API using ...
0
votes
1answer
23 views

Angular - How to pass $index to custom directive?

I'm using angular to iterate over a collection and create using a custom directive several radio buttons. I want to add a certain class to a clicked\checked\selected radio button. How do I pass the $...
0
votes
0answers
5 views

Understanding AngularJS authentication

I'm attempting to use Satellizer for user authentication in my Angular app. Pretty new to authentication, so I'm having some trouble understanding all of it. The Satellizer docs seem to be quite good, ...
0
votes
1answer
13 views

Angularjs component for Typeahead (ui.bootstrap.typeahead), model is not updated

I am writing a custom component that uses Typeahead (ui.bootstrap.typeahead) I get a typeahead dropdown with options, when I make a selection, selected Text is assigned to the model (vm....
0
votes
0answers
36 views

SQL table design for storing Nested arrays

I am trying to implement Easy Form Builder using AngularJS and ASP.NET Web API, SQL 2012 for DB. I am confused about how to design the tables. Here's the Data Structure of a single field { "...
1
vote
0answers
9 views

AngularJs not able to send post param to PHP service

I have hosted a service on my php server and want to consume that using my angularjs app but somehow i am not able to send post params from angularjs Below are my code angular.module('pixyfi', ['...
-1
votes
0answers
12 views

Heroku backend for ionic app

I have a backend on AngularJS on Heroku for an app on ionic. It was working fine, but since yesterday I've got an error when I try to upload some code. The error is: Uncaught Error: [$injector:...
0
votes
0answers
5 views

Angular-breadcrumb: label/parent relationship

I am trying to use ncy-breadcrumb in my application but I don't know how to solve one particular case. First of all I have these 2 states: { state: 'installation-edit', config: { ...
0
votes
0answers
5 views

smart-table library angular not rendering css properly

I am using the smart-table library with Angular 1.5.5. When the smart table makes the table, the styling is really wack. Here's what my table looks like when the table loads (normal): However, If I ...
0
votes
0answers
6 views

Accessing Selenium standalone hub from localhost

I'm using the following software to run my tests: Angular Grunt Protractor CucumberJs Karma I have some grunt tasks defined for running my unit tests (Karma), UI tests (Cucumber) and running a local ...
0
votes
1answer
24 views

Angular handling return data from Web Api as error

I am using Angular to call an ASP.NET Web API endpoint that accepts a file containing customer records and imports them into a database. The import works fine but I am having trouble figuring out how ...
0
votes
0answers
10 views

Stack exchange api where to start

Am not sure if my question is appropriate. But please dont hate. My question is how to authenticate/how to use the request key in an angularjs app in order to use the rest api of stackoverflow ? I ...
-3
votes
0answers
21 views

Pass data to another html without using form

I saw many tutorials taught that using form to help passing data. Can html pass data to another page without using form? I want to use a button (ng-click) to perform the function. How to write the ...
0
votes
0answers
14 views

ANGULARJS : I can't test the value of my input directive

I've a form as under. I can't test or edit if my directive's inputs are empty or null, but i can test or edit in my directive's select.. The mt-select are accessible by $scope.selectedContext or $...
0
votes
0answers
10 views

vkbeautify Cannot read property 'replace' of undefined?

I have a directive that is making xml pretty using vkbeautify so it is working and making it readable xml for user but i also see below error in console. Any idea what is implemented wrong ? html &...
0
votes
0answers
19 views

Angular function doesn't return value [duplicate]

I've got a function in Angular that returns a value. Here's the call of the function: deal.ReferralDeskSelectedValue = CreateLookupObjectByNameReferralDesk(deal.ReferralDesk); And the function, that ...
-1
votes
0answers
9 views

What is the easiest way to define locators for testing AngularJS application using Protractor?

In general, there I have testing experience on Selenium + Java, but the current task is testing, using Selenium + JS + Protractor. The Web application is building in file bundle, as I understand. In ...
0
votes
1answer
19 views

Angular “angular.js:14110 Error: [ng:areq] Argument 'fn' is not a function, got undefined” exception on controller instantiation

I'm setting up a new MVC 5 project using Angular and TypeScript, and I am having issues instantiating a controller and a service. I get the following error when I include the ng-controller in my HTML: ...
0
votes
1answer
13 views

Spring MVC and angular to display webpage background image

I wanted to get a background image in my html page where the image is coming from a rest api. Below is my html code <img class="background-img" id="container" ng-src="{{::backgroundImgUrl}}"> ...
0
votes
0answers
7 views

CSRF protection in a angular SPA using Double Submit cookie

We are struggling with trying to implement CSRF protection in a SPA using AngularJS and Restful services. Scenario: 1. user logs in a JWT is created that contains a CSRF Token as part of the ...
0
votes
0answers
6 views

angularJS $httpBackend for window.location.hostname

I have the followung structure in my angularjs project storing constants 'use strict'; // App's main module angular.module('MYUI', [ 'ngRoute', 'ui.bootstrap', 'n3-line-chart', '...