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
1answer
14 views

AngularJs: Relative path not redirecting with $location.path

I have a problem with angularjs url redirect. Using $location.path() to load the url seems working perfectly with url pattern likes $location.path('/admin'). But when i tried to load $location.path('/...
-5
votes
0answers
13 views

Popup Alarm when a record inserted to table

I'm new in Angular JS I want to ask if how to create a popup alarm that will be triggered when a new record is inserted to a table? Also, it will have a status 1 then,after closing that alarm it will ...
2
votes
0answers
17 views

about:blank sources spamming during website load

The issue is somewhat difficult to describe, so here is a screenshot of the symptom http://imgur.com/wLZEaQM about:blank loads up many times, and I believe this is causing angular to fail. I'm not ...
0
votes
0answers
5 views

md-sidenav capture click-outside-to-close event

I need to capture the event when md-sidenav is clicked outside the menu to close it. Template: <md-sidenav class="md-sidenav-left" md-component-id="left" md-is-locked-open="$mdMedia('gt-md')" &...
0
votes
0answers
8 views

Print data in console with Observable - Angular 2

Trying to learn Observable's in angular 2 and I can't seem to get something simple as printing keyup inputs from an text input field to work. Here is the code from my app.component.ts import {...
0
votes
0answers
7 views

Angular UI Grid Demo bug

Learning Angular UI Grid, believe the official tutorial has a bug. enter image description here Here is my code, local.html: <!doctype html> <html ng-app="app"> <head> <...
0
votes
0answers
7 views

external URL in script tag with Scala Play Framework 2 and AngularJS

I need to import an external library using an URL in my html code. I'm using PlayFramework 2 with Scala and AngularJS. My goal is to insert an Autocomplete box with places provide by google, in order ...
0
votes
0answers
12 views

Pass null to Angularjs file input

I have two problem with jasny file input in angularjs: first - If i open my modal and select a picture with angular-jasny-bootstrap and then close it. When I open again that picture come back. I would ...
0
votes
0answers
9 views

Exclamation mark after hash (#!) in angularjs app

i just noticed that i have Exclamation mark after hash (#!) in all of my routes, i'm not sure how and why i got them because today i didn't had them, is there any solution to get rid of them and i ...
0
votes
0answers
17 views

Take screenshot of current html page using html2canvas?

I'm building a chrome extension and it loads a list of images inside an iphone template img using bootstrap carousel. So each iphone template has a different image. The image is loaded by urls in ...
0
votes
0answers
15 views

Angular 2 Ahead-of-Time Compiler Not Finding ngfactory?

I am very new to Angular 2, and have been playing around with using webpack to build a bundle file for me. However, this file is over 3mb. So I thought I would look into using System JS (I ask a ...
0
votes
0answers
16 views

How can I do a bilingual ng-repeat filter in javascript?

I want to write a filter for ng-repeat that is bilingual for both english and farsi. Does anyone know how to do this? I've tried the normal way but it doesn't work for farsi (my regular expressions ...
0
votes
1answer
19 views

Shopping cart counter in AngularJS 2

I'm working on a project where I need a shopping cart icon with counter. I'm using AngularJS 2, and got stuck somewhere. I need a icon of a shopping cart with a counter in the header. When someone ...
0
votes
0answers
4 views

slideout.js overlay fade in via drag

Hey Guys, I just implement Slideout.js in my Phonegap (+ mobileangularui) Project. For a better user experience I decided to make a "fading-in/out" Overlay like the Android Google Mail app. (...
0
votes
0answers
11 views

JQuery datepicker with month update in Angular JS

I am using a directive to render jQuery datepicker in Angular JS. My directive has worked fine until I decided to incorporate the onchangemonthyear event of the datepicker. When I incorporate this ...
-1
votes
0answers
17 views

Is there any way to intercept Angular UI-Router transitions and remake them with window.location.href in order to generate full page reload?

I am using Angular Ui-Router for application routing. According to the documentation, neither $location nor $state activate full page reload. I know that it can be done manually through window....
1
vote
0answers
51 views

For Loop Not Working As Expected When Manipulating Array of Objects

I have an array of objects that I am editing. This array varies on user selection, but generally looks like this: [{boxID:0,name:"Apple Bread",weight:2}] This array is declared as $scope.boxes At ...
-3
votes
1answer
24 views

Convert json object to array to store data in mysql

convert [{ "name":"abc" }, {"name" : "xyz" }] to (abc),(xyz) Convert object of array to array to store mulitple records into mysql
0
votes
0answers
9 views

How to load div with external template on click of angular ui-grid row

I am new to AngularJS and working on an existing application. I have a grid with data and double-click of each row, I want to load div on same page with an external template. While loading the ...
0
votes
1answer
30 views

angularjs stop at last item ng-repeat

I'm building an app with AngularJS. Inside this app I would like to have 2 buttons on each row, except when the total buttons are not even. How can I let the code stop creating the last col? With the ...
0
votes
1answer
26 views

Angular code works after second click

I'm writing an internet shop using Java on the server-side, and angular on the client. I ran into a problem after working with the comment section. My comment list refreshes after the second time I ...
0
votes
0answers
9 views

Ionic push notifications connected with database

I am intermediate javascript developer ( python mainly) , but in my project we are using Ionic,Anular,Node(ExpressJS) & Mongo as DB. So we have data in the database about certain events at certain ...
0
votes
2answers
16 views

getting data from the controller

i've got 'app.js' with var myApp = angular.module('myModule', []); myApp.controller("myController",function($scope){ $scope.message = 'message'; }); and html <html ng-app="myModule"> &...
0
votes
0answers
16 views

Do I make the is_superuser accessble to my api in django?

I'm working on a project using django and angular and I need to make some pages accessible only to superusers. I've read somewhere that it isn't advisable to make this available to clients. If so is ...
2
votes
1answer
32 views

Prevent Browser window resizing

I am trying to come up with a solution to stop browser resizing at a certain width. Just for testing I am using the following directive: admin.directive('stopResizing', function ($window) { return { ...
0
votes
0answers
22 views

AngularJS template doesn't pull data from controller

*Angular version 1 On my index.html: (include js files with <script>) ... <statbox></statbox> ... On js/app.js var app = angular.module('buttonMasher', ['dashboard']); On js/...
0
votes
2answers
20 views

Getting json url links (Youtube) to show using angularjs

I'm trying to use AngularJS to get data from a json file which has video objects. However, I can only figure out based on other resources/references how to take ONE specific url and concatenate it ...
1
vote
1answer
23 views

Why does overflow:scroll not work in this interface?

Following advice on articles such as this one from CSS-Tricks (https://css-tricks.com/almanac/properties/o/overflow/), I built a two-pane UI using Bootstrap for an Angular-driven app. The two panes ...
0
votes
0answers
11 views

using angular drag and drop lists with angular filter groupBy and toArray

I have a list of items that I put through a number of angular filters to select them on various criteria and then finally group them by a particular property/field to create a series of lists with ...
0
votes
0answers
15 views

ui-router views not loading

I'm trying to find the best routing solution for my application, but my lack of experience with ui-router and its best practices is not helping. My app will have a display of : - navbar-div (state1) =...
0
votes
1answer
22 views

angularjs 1.6.0 (latest now) routes not working

I was expecting to see this question on Stackoverflow but didn't. Apparently I'm the only one having this problem that seems to me to be very common. I have a basic project I am working on but the ...
0
votes
1answer
35 views

How to get both check box values and radio button values in angular.js

My demo https://embed.plnkr.co/R4mdZr/ I am new to angular as I mentioned I want to get both checkbox true values and radio button values .. There is a condition if ingredients minimum value is ...
0
votes
1answer
22 views

Can't detect click event in ng-click function

I want to detect a click event on a SVG element, or more precisely on a g element inside a SVG element. What I have so far is this JSFiddle The ng-clickfires fine but the click event doesn't
0
votes
0answers
20 views

AWS S3 Upload on MEAN stack

I've been trying to create a simple image upload to an Amazon S3 bucket feature in my MEAN stack app following this method but cannot get it to work. (I'm using Heroku for hosting) The error I ...
-1
votes
2answers
38 views

Ionic hiding and showing elements ng-show?

New to JS, Ionic framework, AngularJS. I'm trying to work with ng-show && ng-click to display the header on the event of a click on a button. I am still not getting the intended result, any ...
0
votes
2answers
25 views

angularjs 1.5 service not triggered

I have a form in view1, with multiple input fields. Button submit successfully posts data (stores in db), however the controller (ListController) does not seem to call a service's getter successfully. ...
-3
votes
0answers
24 views

DISPLAYING JSON IN HTML [on hold]

I am getting a below json response from the API , can some one help me with displaying data in HTML with angular js The parsed data looks like this: { Item: { year: 2015, info: { ...
0
votes
1answer
17 views

AngularJS 1.6 and non-Angular event handler

Using AngularJS 1.6 and braintree-web 3.6.2 Hosted Fields. I've wrapped the Braintree callbacks in promises using $q (though new Promise() works fine, too). Right now, I'm simulating $scope.$apply() ...
2
votes
1answer
30 views

Passing argument to custom directive in AngularJS

I have a navbar that shows few country names and when you click on them respective map should show up. <nav class="navbar navbar-default"> <div class="container-fluid"> <...
0
votes
0answers
8 views

Dynamically add multiple markers to Angular Google Map + pagination

I am creating an angular/node/express app. One page must display a list of locations (from JSON file) and also plot each location on a google map. This list of locations is being populated when a user ...
0
votes
0answers
14 views

AngularJS GUI Component / Directive Library CSS styling

I am creating an AngularJS GUI library with a large number of directives. The directives may contain multiple text fields, inputs, or buttons. What is the best practice to let developers add styling ...
0
votes
2answers
20 views

getElementByClassName returns Null in NgFor

I am trying to run a script that will add classes to two divs, this will result in an accordion effect. I am using a JSON file to load in the data and using NgFor to build the divs. The problem is ...
0
votes
0answers
9 views

Auth0.Lock container doesnt show unless button is pressed

I am using auth0.lock to authenticate users and i am trying to have the Lock widget not as popup but embedded in the page, i tried using the container option and calling the lock.show() method from a ...
1
vote
0answers
11 views

ngRepeat with ngAnimate set “data-ng-animate= 2” on my element

I dont know why but ngRepeat don't animate and add data-ng-animate=2 attr on my element. Why its happening? I write this: <div class="aip-main-con-item animate-repeat" ng-repeat="event in ...
-2
votes
0answers
18 views

Angularjs error : Cross origin requests are only supported for protocol schemes: http.. [duplicate]

I open this in chrome file:///C:/Users/Alex/Desktop/angularjsTDD/app/index.html#/ but I got error of Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-...
0
votes
1answer
8 views

Angular: Make a copy of actual data not working

On API Success response. I'm trying to make a copy of data but on $scope change it gets affected too. I'm Working with Angular Component structure project. Example var actualData = $scope.data; var ...
2
votes
0answers
21 views

How to remove base template from ui-view in AngularJS?

So I have this code: app.config(function ($stateProvider, $urlRouterProvider) { $stateProvider .state('login', { url: '/', templateUrl: 'login.html', ...
1
vote
1answer
23 views

$http GET refresh page

I'm working on a project and i'm beginner at html,css,javascript and angular. Im using API from a site with movies and their data is in json and sorted by pages { "page": 1, "results": [ { "...
0
votes
2answers
37 views

not found using http-server node.js

I install http-server globally and still failed to load my angular app. I can start by doing http-server C:\Users\Alex\Desktop\angularjsTDD\app but when I visit localhost:8080 the terminal has a not ...
1
vote
0answers
24 views

Angularjs: Writing Enterprise Level App with many forms

I am working on rewriting an enterprise level application which was build using older JavaScript libraries & frameworks and converting the front end to AngularJs(1.5.9) & angular ui-bootstrap. ...