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)

1
vote
0answers
8 views

'window.fbAsyncInit' is not working on page load?

I want to integrate facebook oauth and for that I am loading javascript library but the code provided by facebook is not working for me. I added this code in index.html and I am using angular js to ...
0
votes
0answers
9 views

Why don't we have a framework that takes all security parts on itself?

This is really frustrating. I've tried to learn nodejs, angular, lavarel and every single thing thinks that security is not a priority, why? Why even in laravel I should do some security parts by ...
0
votes
0answers
4 views

Creating dynamic content and form with angular directive based on object\json

I'm struggling with creating dynamic form and structure and cannot find a solution. Details: The back-end sends me the services object(or json) that I should use to create a dynamic structure with ...
2
votes
1answer
15 views

Turn ON/OFF Webcam using AngularJS

I'm using webcam directive for capturing photos. I'm able to turn OFF the camera. But I'm not able ON it again. Any help would be appreciated. Here is my current code to stop the camera. var mStream ...
0
votes
2answers
27 views

ng-repeat not looping the array correctly

I have array as [{"contractID":1,"contractName":"test","supplierID":1,"supplierName":"test","productID":1,"productName":"test","uom":"each","quantity":1,"pricePerUOM":1,"totalPrice":1,"currency":"$","...
-1
votes
1answer
11 views

Why I am getting this Json.Parse syntax error in response?

I am making the frontend in angular and backend in Yii2. I am hitting an api the status is Ok, but in response I get syntax error. It was working yesterday but I dont know why it is not working now ...
0
votes
2answers
26 views

Compare two arrays and using ng-style to mark equal entries in the arrays

I have a list which shows a query of words from a db, from there i can click on one word and it gets pushed to another list which i can save than. With this i can create different wordlists. What i ...
0
votes
0answers
8 views

AngularJS: Resolve in parent controllers called again after child controller of same parent is called

Resolve is used in parent controller where the same child of parent is called using $state.go() inside function, but Resolve is called twice. For the first time, parent loads the resolve and child ...
1
vote
0answers
14 views

selecting element in uib-dropdown menu

i Have a html code like this. > <div ng-if="!hide" class="dropdown pull-right" uib-dropdown> > <a uib-dropdown-toggle href="" > > <div ...
0
votes
1answer
9 views

Ionic - using bower to install modules

Recently my team has started an Ionic project. For my part, I need to use angular-messages and so I execute bower install angular-messages#1.5.3 as stated in the document. The module is downloaded ...
0
votes
1answer
18 views

PHP - $_FILES empty after large file upload on Azure

I've setup an Angular based file upload using the ng-file-upload plugin (https://github.com/danialfarid/ng-file-upload) and I've been handling the file upload with a PHP script. The file upload and ...
1
vote
3answers
27 views

Angular JS error angular.js:38Uncaught Error: [$injector:modulerr]

While loading my index.html i am facing this error index.html <html> <head>Testing <script src = "https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js" ></script&...
0
votes
0answers
11 views

Migrating to AngularJS: would controllers still have methods like initCreationForm?

I have been using Spring Pet Clinic to learn about various aspects of Spring, in particular Spring MVC. There is a variant of this project which uses AngularJS whereas the original project used ...
0
votes
0answers
14 views

is it possible to save angular js file in local storage as text without downloading it from browser or cookies?

I had already tried // export page definition to json file $scope.exportToFile = function(){ var filename = 'filename' var blob = new Blob([angular.toJson(object, ...
0
votes
1answer
27 views

Angular MVC project - getting 404 with templateUrl

I'm trying to access an edit partial from another folder (AddEditPersonModal.cshtml) in my mvc project, then load the contents in a ui bootstrap modal thru angular. When the index.cshtml page loads I ...
0
votes
0answers
7 views

Protractor - how to use Column method in repeater to get checkbox text?

Following the example from http://www.protractortest.org/#/api?view=ProtractorBy.prototype.repeater // Returns the H4 for the first book's name. var firstBookName = element(by.repeater('book in ...
0
votes
0answers
14 views

Remove attribute from component tag in Angular?

Learning Angular components here. Their tutorial has the following example of "injecting" the custom tag for a component into html: <div ng-controller="MainCtrl as ctrl"> <b>Hero</b&...
0
votes
1answer
14 views

Using Jasmine on an existing AngularJS / Bootstrap project no module found

So I have an existing group project that needs to have test coverage. The project is using npm and angularJS. I began by doing an npm install on jquery, as well as jasmine, and angular-mocks. I ...
1
vote
1answer
17 views

Angular parse:syntax ERROR

I am getting this error when trying to display data from mysql Db using Angular angular.js:13708 Error: [$parse:syntax] http://errors.angularjs.org/1.5.7/$parse/syntax?p0=Code&p1=is%20an%...
0
votes
0answers
13 views

JS/Angular/Places API - document.getElementById(key).value issues with form inputs

I'm using the Google Places API to auto populate locations/destinations into a form once a user searches. I have the form auto populating properly, but when I go to submit the form into my database, ...
0
votes
1answer
24 views

angular enabling paging from a local json file

I am trying to set up a service that, when I feel like it, I can flip to live data coming from an API. The getData function takes skip/take parameters to define start record and number of records. My ...
1
vote
0answers
11 views

NativePageTransitions and loading dependencies with Angular in IonicFramework

I've read this article: http://scottbolinger.com/4-ways-to-make-your-ionic-app-feel-native/ I'm trying to run my app with native transitions but I can't seem to get them to work. I've added the ...
3
votes
0answers
35 views

Angular custom calculator with multiple functions

I need some help with a test calculator. I managed to make the Add functionality work, but i'm stuck on what i have to do next in order to add an extra functionality like Multiply work when the ...
1
vote
0answers
9 views

How to integrate Okta SignIn widget and SAML SSO with a Angularjs SPA?

I've been trying to implement Okta SSO using SAML with my Angularjs SPA(using the Okta Sign-in widget) with no success. The widget works OK by itself(without the SAML integration, just the widget). I'...
0
votes
1answer
17 views

Angular 2 Typescript: domain() is not a function

I have an article class as defined like so: export class Article { id : number; isanon : boolean; title: string; link: string; text: string; subverse : string; userID : string; ...
-2
votes
1answer
22 views

Unique id for two ng-repeat (AngularJS)

Is it possible to affect a unique Id to a div located inside two ng-repeat directives? See bellow example: <!--data: [[{id: 'A'},{id: 'B'},{id: 'C'}], [{id: 'X'},{id: 'Y'}]]--> <div ng-...
0
votes
0answers
15 views

Is it possible to add a search function to a list button (angular)?

I wrote a litlle list button with ng-option using angular like this : <select id="contract" ng-model="selectedContract" ng-options="contract as (contract.name + ' -- ' + contract.value) for ...
0
votes
0answers
8 views

how to call $routeprovider in aspx.cs file, to redirect my page

hi i am new in angularjs, anyone tell me how to redirect my page like this,because i have in angularjs controller see below code Response.Redirect("/MobileRom"); how to do this, in Aspx.cs file ...
0
votes
0answers
17 views

Cannot Resolve State with ui router

I'm trying to use ui router to set states after I pulled pages from a database, but It came up with this error every time I'm trying to click on a sref-link. Here are the app/app.js and the app/index....
-6
votes
1answer
37 views

What is the simplest,most functional javascript [on hold]

I've been trying to get into front-end web but with everything going on in the JS community recently i'm trying to know which type of JS is the easiest and most simple form to learn that can help me ...
0
votes
1answer
16 views

How can I serve my app without using webpack-dev-server?

I'm newbie in webpack, nodejs and angular, but I managed to make an app, it works fine in development environment, and I made a build with "webpack -p", the static files are generated (bundle.js and ...
-1
votes
1answer
53 views

Syntax Error: Token '<' not a primary expression

I am getting a below error when i try to do the below: https://docs.angularjs.org/error/$parse/syntax?p0=%3C&p1=not%20a%20primary%20expression&p2=7&p3=%7Bleft:%3Cimageid,right:%20%...
-1
votes
1answer
17 views

Angularjs add content of one object array into another

I have two variables: First one: studentSearchCriteria1= {"studentList1":"key":"firstName","match":$scope.firstName, "value":$scope.studentSearchCriteria.studentfName},],"...
0
votes
1answer
9 views

API key is invalid Yandex Translate

I use Yandex-transleyt, and upon request receive an answer "API key is invalid." It just received the keys. Council on the format of the query, this topic does not help (Yandex API Translator error - ...
1
vote
2answers
29 views

Angular “Cannot read property 'then' of undefined” with promise

I am stuck on why my promises aren't working. From the other articles I have looked at, I think I am doing it correctly. Here is the code I have currently: Factory code factory.isLoggedIn = ...
0
votes
1answer
17 views

Angular async validation with multiple form fields

I have a async validation directive which works fine when, but it depends on two fields to define if a person exists (numId and type), here's the code: app.directive('personaUnica', function($http, $...
0
votes
1answer
16 views

How do you bind the return value of an Object method to the DOM in Angular 2?

Let me make the problem a bit more specific - I can bind the return value when in an ngFor: <select id="addTimeslotSelect" style="height:24px; background-color:rgb(235, 235, 228);" disabled> ...
0
votes
0answers
27 views

AngularJs: Masked input currency max and min

I am using this git repository for my masked input for angularjs. And I am trying to use the min and max from this but I am not having any luck so far. For example: If I set max = 5000 and it should ...
2
votes
2answers
39 views

How can I get webpack to find angular modules?

I'm trying to setup a bare-bones application with Angular 1 + Typescript 2 and Webpack. The app works fine until I try to use an external module, ex: angular-ui-router. It always complains that it ...
0
votes
0answers
21 views

Getting Error POST http://localhost:8080/stub/cms/myalerts2.json 405 (Method Not Allowed)

I am running my application with grunt task runner, it throws me following error: POST http://localhost:8080/stub/cms/myalerts2.json 405 (Method Not Allowed) I have tried following things in my ...
-3
votes
0answers
14 views

Prev and Next Navigation with Mobile Angular UI?

How do I create an Prev and Next navigation with Mobile Angular UI? I'm new to Angular JS. I can't believe I haven't found any documentation or examples about this. The markup could be either a list ...
0
votes
0answers
22 views

Angular Parent-Child Controllers with “Controller As” Syntax

Is it acceptable or "proper" to pull ojects from a one controller while binding the ng-model to a different controller (for example, when using <select> and ng-options)? Is there a clean / ...
1
vote
5answers
48 views

How do I display this json file correctly in ng-repeat?

I'm trying to create a Store page for my website. I want to display the following json file in ng-repeat: { "cupcakes": { "Vanilla": [ {"price":"9.99", "stock":"20", "amount"...
0
votes
0answers
16 views

Can't remove Google Map Markers when reloading data

I'm a having some trouble with google maps V3 API. Here's my AngularJS Directive: ; (function () { "use strict"; angular.module('LoVendoApp.directives') .directive('map', ['SimpleRETS', '...
0
votes
0answers
9 views

AngularJS - SOAP Service Sending Wrong xml Namespace

I am trying to consume SOAP with Angularjs-SOAP service. However, the Angularjs-SOAP service is sending wrong xml namespace.. It is suppose to send this <soapenv:Envelope xmlns:soapenv="http://...
0
votes
1answer
10 views

Passing initial data from django to angular 2

I'm working on my first angular 2 app in an existing Django/Angular1 setup. We used to pass initial data in a django template to be consumed by angular in a tag like so: <script type="text/...
0
votes
1answer
23 views

Restore scroll position on back

I have a long page of results. When I click on an item (going on a specific item page) and then go back to the page result it could be very useful to restore the scroll position in result page. I have ...
0
votes
0answers
21 views

ng-expression after some re-assignment it blow out something strange

I have my html: <td> <form name="forma" id="changeInput" style="display: none"> <input name="hiddenField"> </form> <div id="descrizioneEventoOriginale" ng-...
0
votes
1answer
15 views

No this.router.back()?

So for my app, I need to be able to do this.router.back (or whatever the correct syntax would be). I did import {Router} from "@angular/router" and added constructor(private router: Router) { }. How ...
0
votes
1answer
8 views

How to put some html markdowns in an angular-translate variable?

There is my problem: I have to put a long sentence with bold and underlined parts in a variable. First of all, I cut it in several variables and it worked very well, but I thought about the translator ...