AngularJS 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 apps are also frequently known as Single-Page Applications.

learn more… | top users | synonyms (2)

1
vote
0answers
7 views

AngularJs Refused to execute script because its MIME type ('image/jpeg') is not executable

I'm trying to access a image on CDN server using angular JSONP get request, but the following error is coming Refused to execute script from 'http://gaadicdn.com/auctions/12/DL4CAF6779/1.JPG' because ...
0
votes
0answers
7 views

How to get click and get row contents or at least the index with angular-ui-grid?

I am using ui-grid in angular, I want to have a "click me" button that when clicked, alerts or logs the contents of the specific row data or index that is associated. How do I get to that? Right now I ...
0
votes
1answer
12 views

AngularJS : Call controller function from outside with vm

Here I have : var app = angular.module('app'); app.controller("myController", function () { var vm = this; vm.myFunction = function() { alert('foo'); }; }); app.animation('.animate', ...
0
votes
1answer
16 views

Angular js inline expression and condition

How to write multiple html inline expression and condition. situation {{step}} value should change based on condition while scrolling my controller controller(){ $scope.step = 1; ...
0
votes
0answers
8 views

Watching .attr('class') for changes in directive?

The quick and dirty: I'm trying to watch the body element for the addition and removal of a class. In my directive I am watching the body element for changes in its class attribute. var bodyClass = ...
1
vote
2answers
14 views

angularjs share variable between functions

Within a controller, I'd like to share data between two functions. For example: controllers.controller('rightDrawerCtrl', function ($scope, $http) { $scope.shared_id; function getId() { // ...
0
votes
0answers
11 views

how to send two parameters from a controller to a service in angularjs

I want to send $stateparams.id along with the below, vm.loadList = function (forceRefresh) { appealityApi.getMixedMenu(forceRefresh,$stateParams).then(function (data) { ...
0
votes
0answers
7 views

Can I combine URL and non-URL parameters in a ui-router $state.go?

I want to do something like this: self.$state.go('abcd', { subjectId: self.sus.subject.id, examId: self.exs.exam.examId, ...
1
vote
2answers
11 views

Required field Validation on input on click on image

The validation works correctly when I have it on the button with type submit. However, I have an image that acts like an image button for me and I want the project name to be filled before the user ...
0
votes
0answers
8 views

Angular Material md-input-class

is there any way I can manipulate the class input of an angular-material md-autocomplete tag? Something like: <input flex="" type="search" id="search" name="" class="form-control input-form"> ...
1
vote
0answers
7 views

how to prevent “Provisional headers are shown” in angularjs ajax call

I am trying to make an ajax call in angularjs application. but randomly i am getting this caution says "Provisional headers are shown" and whenever this caution comes in debugger console I am getting ...
0
votes
1answer
14 views

Angular UI Router is not updating the layout view

I have been stuck on this for hours. The 2 column layout loads but the state views do not. All the view paths are correct and I'm not getting any errors. I googled for answers and I couldn't find ...
0
votes
1answer
17 views

v2.login is not a function

I'm trying to validate the following form: // JS $scope.fields = [ { text: 'Username', type: 'text', value: ''}, { text: 'Phone', type: 'text', value: ''}, { text: 'Password', type: 'password', ...
0
votes
0answers
5 views

ngCart only correctly works in Ionic app with syntax error

Currently I am developing a mobile app in Ionic for a local coffee roaster. Instead of building a cart from scratch I decided to integrate ngCart as a quick option that works with angular. After ...
2
votes
1answer
37 views

JSON stringify is adding backslashes

When the stringified string is sent to request directly, it is not getting added any slashes. var data = { "A": "Aa", "B": "Bb", "C": "Cc" }; // This is JSON object data = ...
2
votes
1answer
11 views

Angular 2 router refreshing page while routing

I'm trying to setup a simple route while learning Angular 2, whenever I click on a link, the browser is routed to the new route but the browser is re requesting all the resources (not behaving as ...
0
votes
1answer
9 views

notification bar in angular js

hey I am creating a web application for an e learning project. For that I am doing a notification bar which must give the looks and feel of Facebook's notification bar. We are using angular material ...
0
votes
2answers
11 views

Encrypting the client side local storage data using Angularjs

I have a client side data storing in the localStorage. For security reasons i want to encrypt the data. Is there any way to encrypt/decrypt the client data(not server data) using Angularjs? ...
0
votes
0answers
5 views

Accessing firebaseObject in angular controller?

I'm new to working with Angular and Firebase. I'm trying to grab the title of a post and pass it to the tag. I'm able to console.log the object coming back from firebase, but if I try accessing ...
-1
votes
2answers
14 views

What are the new features in Angular2 which are not in previous versions?

I have seen many articles regarding the changes in Angular2 . But I can't find much advantage in using Angular2. Can some one point out some new things that can be done using Angular2 which can't be ...
0
votes
0answers
4 views

In Kendo UI using angularJS, How to avoid overlapping of Statusbar and navigation bar in iOS 7 and above

I am newbee to Kendo UI. I am using AngularJS and Kendo UI for developing iOS app. How should I avoid overlapping of Stats bar and navigation bar? Here is How I added navigation bar but it gets ...
0
votes
0answers
9 views

Incorporating oc lazyload with gulp-angular

How can I incorporate oc lazyload to work with gulp-angular yeoman generator , Since running gulp will inject all the dependencies in the scripts folder. How can I configure oc lazyload to inject the ...
1
vote
1answer
12 views

I added list of item value store in array ,so please somebody help me how to pass angular array list to controller

$scope.AddRecord = []; $scope.AddUpdateItem = function (item_id, item_discription, item_quantity, item_unit, item_rate, item_discount) { var getItemAction = $scope.Action; if (getItemAction ...
0
votes
0answers
4 views

How to obtain Access Token & Refresh Token for node spotify api & or meteor-spotify-api

I am working on an app in Angular-Meteor with xinranxiao:spotify-web-api package,which is built off of spotify-node-api & xinranxiao:meteor-accounts-spotify package to login with spotify. I can ...
2
votes
4answers
16 views

Radio buttons getting selected automatically for all the rows of ng-repeat

I have a list of Conditions for which the user has to click yes or no for each condition. Using ng-repeat to show all the condition lists and a column with radio buttons for 'Yes' and 'No' pertaining ...
0
votes
0answers
7 views

populated ui-grid values using celltemplate do not show up

I'm populating my grid values from values stored in a sessionstorage object and it appears to have been saved in the $scope.section2 object as well(as i see it from console.log). However when I pass ...
0
votes
1answer
9 views

A message body reader for Java type and MIME media type, application/json;charset=utf-8, was not found

I am working with an application which has AngularJS as a client and Jersey Rest WebService. I am able to get the data successfully by using angular $http.get(), but i am struggling to post the data ...
0
votes
0answers
8 views

An error “No admin data found at root webpage" when add facebook insight to the webpage

When I try to add facebook insights, I am getting an error No admin data found at root webpage test.goodmoney.co.in/”[my website url]. I followed all the steps to add facebook insights given by ...
0
votes
1answer
24 views

How to portion results in AngularJS

New to AngularJS, and was wondering how I could limit results on a line, and keep spilling over onto the next row. My page has cards loading in, based on how many people are pulled from a database. ...
0
votes
2answers
26 views

Changing the icon image on routing in angular

I want to change an image after going to /tab1. This can be done by 'ng-click'. But need to be done using angular routing. Html file: <div class = "body" ng-controller = "app"> <div ...
0
votes
0answers
5 views

Grails 3.1 JSON-Views, rendering a Category Tree

I'm using Graisl 3.1.1, rest-api profile. I'm trying to build a Category Tree but I haven some problems rendering the categories in JSON-Views. I'm using json templates, one for the parent and ...
0
votes
1answer
17 views

UI Route loading spinner doesn't work without $timeout

I have an angular app using UI Router. I have subscribed to the $stateChangeStart and $stateChangeSuccess events and I'm using an ng-show directive to show/hide a controller property for "isLoading" ...
-1
votes
1answer
26 views

Angular - trouble using multiple filters on ng-repeat that has nested objects

I have an ng-repeat that uses nested values in each iteration. <tr ng-repeat="item in items | filter:myFilter "> <td>{{ item.user.name }}</td> <td>{{ ...
1
vote
0answers
13 views

Unable to apply back button in inner page in Ionic app

$scope.myGoBack = function() { $ionicHistory.nextViewOptions({ disableBack: true }); $state.go('home'); }; <ion-nav-back-button class="button-clear" ng-click="myGoBack()"> ...
0
votes
0answers
6 views

AngularJS - window.plugins.socialsharing.share does not work. I can not identify the error

I have this factory app.factory('myFactory', function() { return { getPostUrlFeed: function( posts,index ) { var urls = posts[index].link; for (var k = 0; k < ...
0
votes
1answer
13 views

How to call $urlRouterProvider.otherwise() after loading JSON file?

I am working on a project based on ionic and angular js. I am loading JSON file which contains some JSON data in key-value pair. What I want to achieve is I have to call $urlRouterProvider.otherwise() ...
0
votes
1answer
9 views

How to solve npm UNMET PEER DEPENDENCY

I am on Windows 10, Node version 5.6.0 and Npm version 3.6.0. Trying to install angular-material and mdi onto my working folder. npm install angular-material mdi gives me the following error messages: ...
0
votes
3answers
30 views

How to use $error.required with ng-repeat?

I have the following structure: // JS $scope.fields = [ { text: 'Email', type: 'text', value: '' }, { text: 'Password', type: 'password', value: '' } ] // HTML <div class="user"> <h2 ...
0
votes
0answers
11 views

Safari does not support HTML5 Save functionality

We have written an application using AngularJS and ServiceStack that enables download of various documents indiivdually and as zip files from the server from a AngularJS based HTML client. The ...
0
votes
6answers
47 views

Javascript transform array from input checkbox

I have multiple input checkboxs created from a model with angular using ng-repeat, when I select some of them I get this: var accounts = [{'AA764':true}, {'AA324': true}, {'AA234': false}, {'AA553': ...
0
votes
1answer
33 views

TypeError: Cannot call method 'then' of undefined Angularjs

I am pretty new to Angular and have problems with making a synchronous operation. I have resolved few issues which came my way with the angular controller, where I get the error 'Cannot call method ...
0
votes
2answers
18 views

two select box in angular, appearing only one

I am trying to create two select box in angular, but only first one is appering, any help!! HTML : <div><p><span id="countryLocale"> CountryName<select ng-model="selectedCountry" ...
0
votes
2answers
41 views

Angularjs ng-repeat show message in Onclick section

I want to show some message in current section when I click update link but I'm seeing the message in all sections. How can I do in Angularjs data-ng-repeat? I don't want use JQuery. View: <div ...
0
votes
0answers
20 views

ngShow Won't Update on Click in Directive

I have the following directive that opens up row menus on click: app.directive('rowDropdownMenuDirective', function(){ return { restrict: 'AE', scope: '@', ...
0
votes
1answer
20 views

Angular 2: Dynamic Images

What's the best way to set an img tag in Angular 2? This doesn't work (and not because of the key): <img ...
0
votes
0answers
5 views

Can't get ngInfiniteScroll to stop scrolling

I have a fairly simple web page that I cannot get to work properly. I am using AngularJS, Foundation, and ngInfiniteScroll. With this template: <div class="row"> <div class="small-12 ...
1
vote
0answers
16 views

Walmart api claiming “Invalid item or quantity. You will be redirected to Walmart shortly.” How do I fix that?

So I noticed in the api there's a addToCartUrl which allows you to add that item to walmart's cart and I use code to do that for multiple items: function buyIt() { ...
0
votes
0answers
15 views

Fundamental misunderstanding of how Angular handles a snippet?

I'm having a problem debugging some code in an Angular controller. This function is called when a form is submitted on our checkout page. I'm fairly new to Angular, and I'm a bit confused as to what ...
0
votes
1answer
25 views

Rearrange a JSON object in angularjs to create a nested ul

Hi i have an RESTfulAPI that return a JSON object like this: { data: [ { id: 4, name: "Naranja", cant_portion: 2, portion_name: "Piezas", ...
0
votes
1answer
13 views

ng-include in ng-table doesn't work

In my table, I have <tr ng-repeat="question in $data" ng-include="'/views/partials/questionList.html'"></tr> And in questionList.html, I have: <td class="top-td" ...