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)

0
votes
0answers
9 views

How to add current user data when saving in django model

I am creating small Django/AngularJS app. User can create account, view all created posts and add his own posts. The current version of app is here: GitHub Models: models.py from django.db import ...
0
votes
0answers
3 views

how to url encode expressions of template variable with $interpolate?

I have a variable x = "http://example.com?a={{a}}&b={{b}} This variable is then used in a ng-src={{x}} Therefore it is important for me to url encode the variables a and b. What i ...
0
votes
0answers
15 views

AngularJS - Unable to get scope on dynamically added directive

I'm working on Parse cloud and loading a javascript file dynamically into the angular partial. <div id="pollWidget_script"> <!-- Injecting script file dynamically--> </div> ...
0
votes
0answers
12 views

Make .container minimum 100% page height while using slideout.js

I have this webpage: http://groupr.fortleet.com where I test my sites. The current version is mobile-first (and only at the time of writing this, because of the navbar showing below 720px). The ...
1
vote
2answers
19 views

multiple returned keys json

I have a joomla site running k2 and pulling info from it by adding format=json to the end of the string: https://www.example.com/posts?format=json which outputs something like this: { site: { ...
0
votes
0answers
7 views

could anyone tell me how to create directory/ folder dynamically to store uploaded images, using AnagularJs, Javascript

anyone have a idea to about creating dynamic folder/directory to store uploaded images using angluarjs/javascript? is it possible.? I tried lot with multer and bus boy, but its store file in parent ...
1
vote
0answers
9 views

How to pause or stop an iframe youtube video when you leave a tab view or minimise your Ionic App

I have a Ionic App that I want to deploy to the android play store, my app just has a list of videos on 1 tab, then when you click on 1 of the video it then plays the video in another tab using an ...
0
votes
0answers
11 views

Need to call ng-switch by url or $location

I have the code below and what I try to do is using a url to call this tab element so that for a url like: localhost:9000/widget&view=map will land on the page with the map tab selected and shown ...
0
votes
0answers
6 views

How to change x-editable event order?

I'm using angularJs and xeditables to create a web application. In this application, I have several xeditable text following each others and the validation is done when pressing enter or clicking ...
1
vote
3answers
25 views

AngularJS expression checking child properties in a list

How do I write an angular expression that checks each child item in a list and returns true if any child has a certain property value? I have a chart legend being generated by an ng-repeat ...
0
votes
0answers
23 views

AngularJS add and use dynamic appeared HTML to controller scope

Faced a problem with adding dynamically generated HTML to controller's scope and using of it. Here is my other topic(generated AngularJS controller usage) but the task is little but different ...
0
votes
0answers
11 views

dataTables change statut work just one time

i have a big probleme with dataTables plugin in angular js, i have a méthode to save the number of line / pages, that work just one time, when i edit somthing in the function it work for the first ...
0
votes
3answers
15 views

Issue with Angular Js resolve method

Hi I have a $stateProvider like below. $stateProvider .state('team.details', { url: '/:teamId', views: { '@': { controller: 'teamDetailsCtrl', templateUrl: ...
1
vote
1answer
11 views

How can I make ui-router controller to work?

I've set up two simple URLs, with simple different templates and the same controller, but it doesn't work HEAD: <script src="jsLib/angular_v1.4.js" type="text/javascript"></script> ...
2
votes
0answers
20 views

Is it advisable to use $watch instead of binding to a function in a large angular app to enhance performance?

I have tried: <div ng-show="isDirty()" /> $scope.isDirty = function() { console.log('isDirty'); return field.isDirty; } and <div ng-show="isDirty" /> ...
0
votes
0answers
6 views

Angular DataTables rendering Issue

$scope.$on('handleRequest', function(){ $scope.request = requestService.request; requestValue = $scope.request; console.log($scope.request); ...
0
votes
0answers
10 views

$locationProvider html5 mode enable/disable in controller?

Basically I made an app for the whole website and different controller on each pages ( not all pages use angular but the page it do it have separate controller of its own ). I don't use template ...
0
votes
0answers
10 views

How to create a chat box window using html bootstrap and angular js

My requirement is to create a facebook style chatbox window using HTML, angularJS and bootstrap. I also need to add Text to speech and voice control button on chat box and How i can minimize or ...
1
vote
1answer
18 views

Why using Angular Moment returns all january in ng-repeat?

I am using <div ng-repeat="usage in previousUsage" <p>{{usage.Month | amDateFormat : 'MMMM' }}</p> </div> usage.Month data are numbers 1-12 The data returns January
0
votes
0answers
12 views

TypeError: $browser.cookies is not a function

I'm learning to write and run test on my Angular app with Karma and Jasmine. The first tests passed, but when implementing $httpBackend, I got the following error: TypeError: $browser.cookies is not ...
0
votes
0answers
9 views

Get data from server and display through ng-bind in angular.js

I am getting the data from server. Through ng-bind i want to display data in inbox page. But it's not updated in the html element. And i am getting that data in sign in page.I am using same controller ...
0
votes
0answers
10 views

angular foreach alternative

I've got this code: iconTypeData.getAll().then(function (iconTypes) { $scope.icon_categories = angular.copy(iconTypes); $scope.icon_categories.forEach(function (iconType) { iconType.entries ...
0
votes
0answers
7 views

$watch callback execution order

Here's what I have: $scope.$watch('someVar', function (val) { $scope.someList.push(val); execLongFunction.then(function (data) { val.computedValue = data; }) }) What I want: to ...
0
votes
0answers
23 views

Parsing a json using Angular js

{ "statusCode": "000", "statusMessage": "Record Successfully Fetched", "dsStatusCode": "000", "dsStatusMessage": "Record Successfully Fetched", "businessInput": null, ...
0
votes
1answer
38 views

How to bind css properties between elements?

I want element A to have a the same width as element B. whenever B changes, A should change as well. What is the angularjs way of doing it? Here is a fiddle to illustrate my problem: ...
0
votes
0answers
21 views

Angular dynamic selectboxes on change of other

Hi I am new to angular, I have 2 selectboxes , Enfants (please check image attached) should show amount of kids, and based on amount of kids, for each one should be a selectbox to select the age. But ...
0
votes
0answers
11 views

Cannot use 'in' operator to search for 'videojs' in undefined

I'm trying to add VideoJS (v4.12.7) to my application, however I keep getting this error: Uncaught TypeError: Cannot use 'in' operator to search for 'videojs' in undefined $ @ ...
0
votes
0answers
27 views

How Angular Js Works? Can I Do Angular Js Without Server Side Language ? How Can I Do Server Side Using Angular Js?

How angular js works?? Can i do angular js without server side language ? How can i do server side actions using angular js? For example i have an application which uses some functions to save data ...
1
vote
0answers
9 views

Remove custom overlay from google map

I'm using dynamic radius for the google map overlay, how ever when i change the radius , the earlier remains the same.. i'm trying to remove it but unable to. i referred from these url but unable to ...
0
votes
1answer
11 views

Ways to access element controllers (eg. ngModel & form)

I have a directive that is always placed inside <form> on elements that wrap form elements (input/select/etc), let's assume directive is called wrapper: <form> <something> ...
0
votes
0answers
8 views

AngularJS - Creating shorthand routes with $route.routes

I am migrating AngularJS from 1.1.5 to 1.2.27. In the older version, I was able to use shorthand routes i.e., var app = angular.module('app', []); app.config(['$routeProvider', ...
1
vote
3answers
28 views

Angular Js Unexpected token :

I am a beginner to Angular js.I am not sure as to why this error is appearing in my script file. My code looks like this: angularExample.html <!DOCTYPE html> <html ng-app="Tutorial"> ...
0
votes
0answers
20 views

I need to select an HTML element when it's clicked using AngularJS

I have an HTML file that has list of users on the left side and properties of one user on the right. When I click on some user I can see his properties (name, email, etc), but how can I have user's ...
0
votes
0answers
20 views

Read barcode input and store as array for processing

I want to read barcodes using a barcode scanner. Each time a label is scanned, it will be read and stored into an array. After it has finished scanning all items, there will be a button to send the ...
2
votes
1answer
18 views

Angular UI-router resolving get promise causes post request to become null

I have a problem with Ui-router using angular v1.3.15 and ui-router v0.2.8. I have set up routing with nested states and i am resolving promises to load views with data, so far so good. My problem ...
0
votes
0answers
7 views

How to get uploadcare widget in angularjs to update with model changes

I am using this uploadcare widget in my angularjs app although when I use an angular model as the value for an attribute in the app, the uploadCare widget isn't effected. Everything works except for ...
0
votes
0answers
6 views

How to deploy webpack application on tomcat?

I am new to Webpack module bundler. I am making a simple application in AngularJS with Webpack. My application is running properly by executing command npm start which runs in development mode. Now ...
0
votes
0answers
24 views

Internal Server Error in returning arraylist from ajax call

I have a spring project and i am calling my controller from ajax call and i want to return arraylist of an object. In debug it shows proper contents in java code.But in js it gives error. Internal ...
0
votes
1answer
8 views

using multiple states with app.single

Hi I just want to know if I can use multiple states with app.single. My app shows blank when adding another state using app.single, but if I remove it the app shows again. app.js ...
0
votes
2answers
14 views

Paperclip: How to get image URL

I'm trying to switch my Rails server to AngularJS. Everything worked fine so far, but I don't know how to get the image url from Paperclip. The current data I'm receiving is: { "id":52, ...
1
vote
2answers
27 views

angular.element is not working in tabset directive of angular js

I'm using tabset directive of angular js and using twitter bootstrap slider in tab, My slidestop event is not calling but it's working well outside tab. I know that tabset directive have its own ...
0
votes
0answers
6 views

Setting resource collecting to another port

Okay so i am trying to set up my video stream with node and angularjs for days now. Right now my upload function works and i have come to a tricky part where i need to force my application to ...
1
vote
0answers
26 views

How to avoid a bloated index.html in AngularJS?

I've started learning Angular last week and going through lots of tutorials and best practices. One of the tips that I often encountered was to separate each controller, filter and service into its ...
0
votes
0answers
35 views

how to load html form on click of div using angular js?

This is my html code <ul class="nav nav-pills nav-justified th-menu"> <li role="presentation" ng-class="{active:isActive('/about')}" ><a href="#/about" ...
0
votes
2answers
31 views

How to post content with & to a web api?

I have a problem to post a content with & like "M&A is the trend....",the message only stop at M MVC Web API [HttpPost] public IHttpActionResult Post([FromUri] CommentModel ...
2
votes
0answers
18 views

angularJS x-editable status based condition

I have implemented some color classes so that the status changes the color of the tr <tr id="item" class="tRow" ng-class="{'status1':'red', 'status2:'green', 'status3:'yellow'}[item.status]" ...
5
votes
1answer
53 views

How to get Object Index by Value?

ANSWERED by Fissio I am trying to make a simple search feature in Angular. When the user types in something in the input field, I want to search through all the 'titles' in my JSON, and if a word ...
3
votes
1answer
32 views

AngularJs : event listener on http requests

Since i'm using Oauth2 to protect my Api, i need to get a new access token before any http requets if the previous access token has expired. I didn't used event listener much until now. Here what i ...
0
votes
0answers
7 views

Nervgh Angular File Upload - cancelItem method not working

This is my html code : <input type="file" nv-file-select="" options="{ photoType: 'studentPic' }" uploader="uploader" /> This is angular code : var uploader = $scope.uploader = new ...
1
vote
2answers
21 views

AngularJS Domain model object

This is a question for AngularJS developers, what is the best practice for the domain model objects ? File structure ? Class definition ? Modules ? This will be mainly used for REST web services to ...