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
3 views

custom ui-bootstrap-custom-0.12.1 for popover on hover instead of click

I am not supposed to use popover.js , However I can use ui-bootstrap-custom-01.12.1.js The question was how I can get the directive to work with hover on the html content provided. One example is ...
-1
votes
0answers
5 views

AngularJS ng-repeat fails in Safari

Anyone experienced problems with Safari when using ng-repeat? My page works fine in Chrome and the ng-repeat is showing the items, but not in my Safari browser. I'm testing the browsers in Desktop. ...
0
votes
0answers
5 views

How do I detect when ngBindHTML content is loaded for Prism JS code highlighting?

I am using PrismJS to highlight <code> blocks on a web page. I am also using AngularJS to dynamically load HTML content into my view. Specifically, I am using $http.get() to get HTML from an ...
0
votes
0answers
11 views

How can I add dynamic directives to my angular app on the fly?

I have an application where as I need to emulate an os window type behavior. So I need the ability to add multiple windows each with their own context and potentially their own nested directives. I ...
0
votes
1answer
16 views

4th argument to the link function

I have a directive written by another developer that basically has following configuration: { controller: MyController, controllerAs: 'myController', link: function(scope, $element, ...
0
votes
0answers
3 views

Change OrderBy Angular Icons on Click

I am working with Angular to do this. I have a table with some headers at the top. There are little down arrows inside the table headers. When clicked, these icons sort the table based on the column ...
0
votes
0answers
17 views

how to affect object to variable

controller('OffersCtrl', function($scope, $stateParams, $log, Malls) { var selectedBrand = Malls.getBrand($stateParams.brandId); console.log(selectedBrand,"ok"); var brand.offers[]=selectedBrand ; ...
0
votes
1answer
15 views

Angular $interval only firing once

I don't get it. I only see "interval" logged once to the window's console with this code: $interval(function () { console.log("interval"); }, 1000, 0, false); What am I missing? Edit: I have ...
0
votes
0answers
9 views

Open new link in native browser Webapp - Javascript [duplicate]

I have a webapp function in javascript that I want to open an external link in safari (iOS), for example. Using: window.location.href = "http://stackoverflow.com"; The page is opening in the same ...
0
votes
2answers
22 views

Angular ui route doesn't activate the controller

In the following view <div ng-repeat="make in makes | orderBy: 'name'"> <a ui-sref="modal.models({make: make._id})"> <li>{{make.name}}</li> </a> </div> ...
0
votes
0answers
6 views

need to trigger $swipe event in angularJS

I am using ngTouch for an angular html5-hybrid app. And one of things that happens that causes bugs it that $swipe will start but not end. For example, given the code below: The console will log ...
0
votes
1answer
14 views

how to bind the value properly to a angular dropdown

I thought I understood how to do this but my angular dropdown is not putting the value into my control as expected. I am getting value set to 0 when it should be 2005. 2015 // array vm.years = ...
0
votes
0answers
6 views

Ionic Show Google Map Result from Jason file

I am doing an assignment. There is one scenario that user search for companies' name, etc. Then user click the result --> shows company details which include map. I would like to know how to pass json ...
0
votes
0answers
13 views

Google's new reCaptcha breaks angular with ui-router

When I tick the recaptcha box, ui-router seems to break down. All links with ui-sref attributes on the page stops working, but I get no error messages. Please look at this plunker that I've set up. Do ...
0
votes
0answers
9 views

Angular parse/evaluate/execute JS loaded into directive template by 3rd Party JS

I've searched hi and lo and can't find a post that is relevant/helpful for my particular situation. I have an app that loads various widgets, some of which load JSONP that contains 3rd party JS that ...
-1
votes
1answer
10 views

AngularJS Displaying Table Row on expansion

I am trying to show a more detailed summary of a row when a user clicks on the "+" icon on the row. I got it to work when I used an tag but when I modified it to an tag, the javascript would not ...
0
votes
2answers
12 views

AngularJS - Similar view - Should i use same view with multiple controllers?

Let's say we are implementing CRUD operations for a specific object - those view would be very similiar and i think i should use the same view with multiple controllers. Is there a way to choose the ...
-1
votes
0answers
20 views

Best way to structure shared angular components?

I'm going to have many angular apps, all sharing different components with each other. The first thing that came to mind is to put all the ui-router .state() calls into re-usable modules, and then ...
0
votes
0answers
9 views

Requirejs Error

I am working on RequireJS and never used it before. Currently, my folder structure. app —— components —— settings.js —— controllers —— directives I want to include angular module into ...
0
votes
1answer
23 views

How to store http result in angular

couldn't find answers from other questions. I'm trying to get data from a webservice, and then draw a chart and display a table below it. If I put the datatable inside the .then function it throws ...
0
votes
0answers
5 views

Angular-Material md-select in md-dialog

I have an angular material app in which I have a button that triggers a dialog box with a dropdown in it. If the button is at the top, everything works fine and as expected. If the button is ...
0
votes
0answers
5 views

Restangular put() not working on multiple put()'s

Here is the code in question function putCategory(category) { console.log(category.parent_id); category.put().then(function (data) { console.log(data.parent_id); ...
0
votes
3answers
33 views

Emitting data across controllers

I was trying to follow this exampled provided by the Angular creator Vojta. However, I can't seem to get the emit to work properly. Here is my fiddle: http://jsfiddle.net/nopctoday/fp2y3jur/2/ ...
-1
votes
0answers
8 views

jQuery Events Calendar via Ajax with Onsen UI

First post on Stackoverflow long time reader. So excuse me if i mess anything up in this post. I am building an app using Onsen ui. I am fairly new to the onsen ui and angular.js I am using slide ...
0
votes
2answers
24 views

Angular move success recursive callback inside service

I have a service that returns $http promises. This works fine, but I need to do a recursive call in case the list returns more than 100 items. Again, this works okay but I'm repeating myself for every ...
0
votes
0answers
16 views

How to determine what kind of error is returned from $http request in angularjs?

I've been working with angular and I have an error when I do a ajax request post with angularjs I don`t know what is the error just I can see a message, I would like to know what kind error is it ...
0
votes
0answers
7 views

AngularJs Select ng-model not working with foreign key value

I've read countless how-to blogs to try to figure out how to do this and have been woefully unsuccessful. Let's say I have a service that provides a list of objects that I want to load as options in ...
0
votes
0answers
24 views

Row index for multiple row horizontal list

I have a list of items that I display as horizontal list (ul) with multiple rows (list wraps based on available space). Is there a way I can get the row index of a specific list item. E.g. I have a ...
-4
votes
0answers
24 views

Opening and closing mySQL database connection?

I'm learning how to build an app using AngularJS and I'm trying to use a database to store values but am having trouble understanding how I should be connecting and disconnecting from the database. ...
1
vote
1answer
12 views

Multi-View Form AngularJS reroute

I have been experimenting with a few ways to create this form. Scotch seemed to have a great tutorial with nested views. This is the part of the JS file I assume the problems occur. I created a ...
1
vote
4answers
46 views

No effect on ng-class after ng-click is called

HTML <div style="float:left" data-ng-repeat="x in tokens" ng-init="btnclass=false"> <button type="button" ng-class="{true:'btn btn-material-light-green btn-sm', false:'btn ...
0
votes
0answers
12 views

ng-change function doesn't get called after applying jQuery plugin

I have a search app in a huge table made of varying columns and possibly thousands of rows. In order to make this more user-friendly, I am applying this jQuery plugin to it so the header remains fixed ...
-2
votes
1answer
19 views

How to hide block after click Angular JS?

There is an block HTML in page: <div class="item" ng-click="delete();"></div> Angular JS: $scope.delete = function (){ if(confirm){ // hide block } } I can send $event to ...
0
votes
0answers
25 views

How to write a dynamic list

I want create a dynamic list. The following does not function correctly as the list is not being populated. This is what I have so far: Services.getBrand function(brandId) { for(var i=0 ; ...
0
votes
0answers
10 views

UI Bootstrap Typeahead is not displaying the values ​​returned async

I am trying to do an autocomplete search using UI Bootstrap Typeahead to select a data from a database. My service returns data in my response, but data are not listed in the component. When I put a ...
0
votes
1answer
34 views

Using ng-repeat on an array within an array

I'm trying to iterate through the JSON array and through the ingredients/directions array using ng-repeat. What I have isn't working. Any advice? Thanks! Controller: ...
-1
votes
0answers
17 views

AngularJS Json file output into a table

I have a Json file that I would like to output into a table. I am using $http.get request and $q to retrieve Json object. I am trying to figure out how to get that data into a table that will display ...
0
votes
1answer
12 views

Angular Filter by multiple Checkboxes and properties issue

I am trying to filter with few properties of a json output in Angular.js, here is my plunker link. The actual problem is, if i am trying to filter by type 1, than it automatically color filter value ...
0
votes
0answers
19 views

filter results by month on button click with Angujar

I am trying to wrap my head around angular still, I started learning a few days ago, and I am still getting to know Angular. I've been trying to experiment with a simple json http request. So far, I ...
-1
votes
0answers
26 views

Angularjs: Check duplicate value of input field

I have list of inputs with maxlength="1" which accepts and number or letter; however, each character can only be used once. If the same character is in more than one input field, both inputs should ...
2
votes
0answers
14 views

angularJS/breeze wipes out 'intermediate' negative number entry (HTML5)

Fighting a little bit of a battle here. I have an HTML5 SPA app based on John Papa's methodology. I have a series of input boxes that are supposed to accept positive/negative real numbers. Similar ...
0
votes
0answers
24 views

Angular, binding model to ng-repeat passed into directive (with repeat)

I am trying to bind a model to a repeat on a directive that has a repeat inside of it. On the outside I have it looking like this <div flex="25" ng-model="filterList"> <div ...
1
vote
1answer
25 views

update scope variable from a promise inside a directive controller

I am a newbie to angular. I am trying to populate the map.markers array existing in a controller from a controller of a directive(from a promise inside it).. and having hard time figuring out. any ...
-1
votes
0answers
12 views

What is the pattern for testing for asynchronous calls to MongoDB using Jasmine?

I am new to unit testing asynchronous code. I have simple wrapper functions for calls to a Mongo database and I'm not sure how to write the tests. For example, I have a service with the following ...
1
vote
1answer
18 views

How to process submit data from complex Angular.js web form

My web form (built with Bootstrap 3 and Angular.js 1.3) is lengthy and mildly dynamic. In other words, there are a few cases of tabular arranged input fields and other regular input fields with an ...
0
votes
1answer
11 views

Adding Pagination to AngularJS Table

So I am getting some dynamic data and am able to get it to display, but I now want to add some pagination, I have seen that there are modules that can do this but with my limited experience with ...
0
votes
1answer
16 views

What is the Best way to load jQuery custom JS file in AngularJs

Basically I had a static page using many jQuery dom manipulation for creating UI and initiating few plugins. But now Im moving with AngularJs. orignally I had main.js (function($){ var somedom ...
0
votes
0answers
10 views

using angular bindings with google maps

I want to use a simple google maps embed that utilizes angular bindings to make the map more dynamic. So instead of the following <iframe width="425" height="350" frameborder="0" scrolling="no" ...
0
votes
0answers
11 views

angular route handling slug URLs

I'm having following routing configuration: myApp.config(['$routeProvider', function ($routeProvider) { $routeProvider. when('/speaker/:speakerId', { ...
0
votes
0answers
19 views

What's the proper way to update model value within directives when value is an object?

I have a directive bound to an object that has several properties (the directive creates and updates those properties). This directive is supposed to be used alongside with text inputs. It means that ...