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

returning json object in a modal to a grid and editing it in Angularjs

I constructed a ui grid which has a column for editing, the grid information is populated by a json. Upon clicking the edit column a modal is opened. I want the user to be able to edit the row it ...
-1
votes
0answers
29 views

Handling array of arrays in JSON and Displaying using ng-model

Requirement: need to push an JSON array inside an array of JSON objects.Final Structure Needed like Below, var memberArray = [{ "Identifier": "1", "Question": [{ "QuestionId": "1", ...
3
votes
1answer
19 views

AngularJS select ng-model

I use the following select statement: <select ng-model="vm.institution" ng-options="c as c.institutionName for c in vm.institutionsOfUser"></select> In my model, the institution is ...
-1
votes
0answers
11 views

Highcharts and Angular

I had a website that would be the front end for an Arduino / Saltwater fish tank controller. This website included outlet timer settings/ highcharts for pH and temperature / and settings for LED ...
-1
votes
0answers
9 views

Angularjs + Jquery (jquery.transit) animation + dynamically filled input field?

Have a little problem, working on one mobile app @ apache-cordova (it was really tough to make angularjs work here..hehe), and the problem is: i have an input field, which i fill with jquery with a ...
0
votes
1answer
16 views

AngularJS, filter only if a variable is true

I have an ng-repeat with a filter from an input field: <input type="text" ng-model="search"> I then have an ng-repeat that should be filtered only if a checkbox is checked. <input ...
1
vote
1answer
9 views

AngularJs directive link function testing with jasmine

I'm trying to understand how the directives works and how to test the directives with jasmine. I cant test link function in directive. What I am doing wrong? it('should add class', function(){ ...
0
votes
1answer
10 views

Unit testing an AngularJS app that uses $translatePartialLoaderProvider

I am designing the unit tests for an AngularJS web app, using Karma-Jasmine. The web app uses angular-translate and, specifically, employs the $translatePartialLoaderProvider module. The app itself ...
-1
votes
1answer
13 views

View is not updated after scope chance

I have an AngularJS app with a simple view : <span ng-repeat="answer in question.answers"> <hr> <small>By <a href="#">{{answer.author}}</a> <span class="glyphicon ...
0
votes
1answer
16 views

bootstrap angularjs accordion not auto collapsing

I'm trying to generate an accordion with ng-repeat much as shown in the following sample: <div class="panel-group" id="accordion"> <div ng-repeat="One_Item in Items_List track by ...
0
votes
0answers
17 views

Find deeply nested (descendants) element (id) in angular

I've been sitting with this all day now: In my Directive in AngularJS I can not find a nested element with a certain id. jQuery is loaded and used. The HTML: <div ...
-1
votes
0answers
19 views

angular select not working in chrome

Simple code with select options working well in firefox, but not in chrome js: angular.module('app', []).controller('ctrl', ['$scope', function($scope) { $scope.items = ["", "Item 1", "Item 2", ...
1
vote
1answer
20 views

update service property from isolated scope angularjs

How can I modify value of service from isolated scope? in my code, I want to change the default date to something else, by the service property . my directive : ...
1
vote
1answer
19 views

Angular ui-router: $stateParams empty inside my directive

In my angular app, I have created a custom directive for a navbar, which controller takes in $stateParams to access a variable called lang, as so: .config(function($stateProvider, $urlRouterProvider, ...
1
vote
1answer
12 views

Error: $injector:unpr Unknown Provider Angular

I have create a project MVC in the layout i have this (for load Menu Categories): <html data-ng-app="app"> . . . //in the menu <li class="dropdown" ng-controller="menuCategoriesCtrl ...
0
votes
0answers
8 views

Firebug output, need explanation on console.log

I'am currently console logging an object in an angular directive, particularly the link function of the directive. This is the part: link: function(scope,element,attrs){ console.log(attrs) } ...
0
votes
1answer
13 views

AngularJs input Week - Show current CalendarWeek / Add 10 days to Current Calender Week

I am quite new to Angular and facing some problems atm. Here is what I want to build: I want to show the current Date: yyyy-MM-ss (Works) I want to show the current Calendar Week: yyyy-Www ...
0
votes
1answer
21 views

Control how angularjs converts date to json string

I have an object containing a javacsript date. Something like this: var obj = { startTime: new Date() .... } When Angularjs converts the object to JSON (for example, when sending it over ...
0
votes
0answers
17 views

AngularJS ng-controller directive does not accept variable (scope function) from javascript, does not give any error either

I am relatively new to angularJS, I am trying to set up a page where inturn multiple pages are called depending upon the selection made previously. All the pages have their own controller, so I am ...
0
votes
1answer
23 views

Synchronous AngularJS $http Call

I have an service in my Angular app that is responsible for authorizing the user and returning the auth token back. However, due to the async nature of $http, I cannot properly isolate the logic of ...
0
votes
0answers
4 views

Cytoscape.js directive not invalidating dimensions when container is resized

I have a cytoscape.js graph inside an angular.js directive listening (watching) for it's container div width. when I'm collapsing a side panel in my app, the container div takes the whole width of the ...
0
votes
0answers
5 views

Embed angular.js app in resizable div

I'm using angular.js to paginate a list of data on my website (found the code at http://www.angularcode.com/angularjs-datagrid-paging-sorting-filter-using-php-and-mysql/). The user can decide, how ...
2
votes
2answers
29 views

Angular - running functions from controller on ng-click

I want to run some function on load of a directive, and then be able to "rerun" it again with ng-click. My code is as follows: const app = angular.module('app', []); class dummyController { ...
2
votes
1answer
21 views

how the toggle function work in angular?

I make a service like that . (function(){ 'use strict'; angular.module('desert').service('desertmanager',desertmanager); function desertmanager(){ this.mode='pie'; ...
0
votes
0answers
8 views

$scope.gridOptions.api.SelectIndex doesn't work with datasource

I'm using the server side pagination and filtering example with angularjs. On loading the data in grid, I would like to programmatically set the first row. However below method does not work if the ...
0
votes
1answer
18 views

How can I write a test for controller with firebase factory in Angular js?

Since I wrote firebase-factory separately from RecipeController, I have an error in my Test. TypeError: Cannot read property '$loaded' of undefined. $loaded is a method in firebase... test.js ...
0
votes
0answers
12 views

Angulartics to track impressions on Bootstrap carousel items

In my Angular app, we have a bootstrap carousel (using bootstrap carousel rather than ui bootstrap carousel for some reasons), items structure as follows <div class="item" analytics-on ...
-2
votes
2answers
19 views

setting input value while editing in angular

I'm trying to display the current value of an input which is bind to a data model. Here is my input field input(ng-if="edit == $index", type='number', ng-model='item.price') This one shows the ...
1
vote
1answer
14 views

angularjs success and then success returning right respond while then not responding

I dont get to know difference between then and success I posted my controller and view part if i used success it works for me but I used then it doesnot produce the output says not data found in ...
1
vote
0answers
16 views

Angular UI Bootstrap 0.14 modal

Hi I have a problem :D The problem is about modals. I have 4 different files work together these are; index.html: my main html file that I include the css and javascripts and all the other html ...
3
votes
1answer
21 views

make image fill remaining vertical space, no scroll, with angular-material

I have a page with a title, paragraph and a single image, that can be of very different sizes/aspect ratios. I would like the image to adapt so that it will either fill maximum available height, or ...
0
votes
0answers
11 views

Bootstrap and AngularJS: Modal confirmation deleting first row

I got a table which repeats a delete button for each and every member. The confirmation button does work when I don't use the modal, however if i use the Modal, the first row only gets deleted. As I ...
1
vote
2answers
26 views

How to output two dynamic variables that depend on each other

So for example : Controller: AllBooks[{ book1:{ hardcover{price:25.99},e-book{price:1.99} } }, book2:{ hardcover{price:60.00},e-book{price:2.99} }]; $scope.bookchoice = function(selectedBook) { ...
-1
votes
0answers
10 views

my abgular demo works slow on server Please help me [on hold]

Once click any acter it will open details partial page and you can see its loads very slowly but which works vert fast on my local PC please help me to figure whats wrong in my code
0
votes
1answer
19 views

Angular ui router append state

My app contains a root state with the following elements: Header Content Footer The footer itself has some links. Each link should open a popup and update the browsers url. The root-state also ...
0
votes
0answers
8 views

affablebean -with AngularJS cannot implemented with netbeans

i am trying to run the affablebean project impelmented -with AngularJS On Netbeans Ide 8.0.2 that can be found on here: https://bitbucket.org/dkonecny/affable-bean the problem is by defining the ...
0
votes
0answers
5 views

Stop Animation from another function AngularJS

I want to make a left-menu with collapse, and I want this animated on height. The problem is as when the animation start the 'ul' element have a class named 'open-progress', when the element have ...
0
votes
0answers
12 views

how to authenticate myself asynchronously on the Google Drive API using AngularJS and HTML

Could someone determine how to authenticate myself asynchronously on the Google Drive API using AngularJS and HTML? I am getting stuck on the call to gapi.auth.authorize because the callback function ...
1
vote
0answers
30 views

Angular 2 Change detection

I am trying to create a simple example project to test the angular 2 change detection mechanism: I create a pure javascript object in script tags on the main index page. it contains the following: ...
0
votes
0answers
21 views

AngularJS WebApi Put - not working?

I know it's been asked before, and I've tried figuring it out myself (and failed). So here's my code: ... $resource("/SWDB/api/admin/users/:id", { id: "@id" }, { update: { ...
0
votes
0answers
17 views

$HTTP Post inside of an action

I would like to use a simple $http.post to send data when an action occurs in my app (a right or left swipe of the card). My html tells me my current card using: <td-card ...
0
votes
0answers
7 views

Play a sound as background (no controls visible) using Angular Js

There's a way to play a background sound (no controls visible) using Angular Js? I'm developing an app (Cordova visual studio tools).
0
votes
0answers
21 views

Equivalent of Angular 1 otherwise route in Angular 2

I'm using Angular 2 routing for my application and it works pretty well but I have no idea how to define the "otherwise" route. So a route that will be displayed if none if the current URL does not ...
1
vote
2answers
34 views

Angularjs ng-repeat index not working

I want to use ng-repeat more or less as follows: <div ng-repeat="One_Entry in Entries_List track by One_Entry.Entry_ID" onClick="DoSomething(One_Entry.Entry_ID)"> <!--- ...
0
votes
1answer
30 views

Angular ng-show/ng-hide issue in nested ng-repeat

I'm new to angular and I know this question has already been asked so many times but I'm not able to make it here. Here is the JSBin for my problem: What I'm trying to accomplish here a list of ...
1
vote
0answers
18 views

Allow Angular $sanitize to keep certain tags

I want to enable the user in my app to use certain white-listed HTML tags (like <div></div> & <span></span>) but disable other HTML tags like <script></script>, ...
0
votes
1answer
18 views

kendo ui grid attributes

I'm reading an Angularjs Kendo UI application and I'm trying to figure out what's happening. In the following code: <div id="my-grid"> <div kendo-grid="controllerName.myGrid" ...
0
votes
1answer
20 views

Properly retrieve username and useful values (site title, copyright, etc.)

I have a simple web app based on this project ( https://github.com/arthurkao/angular-drywall ), running with NodeJS and AngularJS as the front-end. I'm trying to set up a simple page that displays a ...
-1
votes
0answers
12 views

Angular js coockie authentication

I implemented facebook authentication with passport on the backend and I set a cookie in the browser where I am using Angular JS. Everything is working fine and as aspected. The only thing I can't ...
1
vote
1answer
11 views

Uploading video to Firebase uing ngCordova ($cordovaCapture) in ionic framework

How to upload video that I record using my mobile. I manage to upload the video path to Firebase but when I want to use it in my view (html file), it does not work. Here is my code: ...