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

Loop through an array of objects with ng-repeat angular

I can't find a way to loop through my array of json objects with angular . My array looks like that in firebug(Each series of objects have an index value.): [[0], Object { idliste=0, id=1, ...
0
votes
1answer
9 views

have multiple snap-drawes and snap-contents in a page

I have a list of movies in a page, and I want to add slide left to show movie times and slide right to show movie cinemas. I tried to have snap-drawers and snap-content for each item in the list, but ...
0
votes
1answer
19 views

Assigning values in functions called $interval

I'm having difficulty understanding how value assignments are handled within functions called by $interval. Given the following code: this.value = null; this.setSelection = function() { ...
0
votes
1answer
17 views

Pass a request header to uriTemplate in AngularJS

I got this Angular code: .state('UserTables', { url: '/Tables', resolve: { auth: function resolveAuthentication(SessionService) { return ...
0
votes
2answers
17 views

How get access to global variable from Factory Angular JS?

I tried to write factory method in Angular JS: .factory('FriendsFactory', function(){ var friend = {}; friend.delete = function(id) { ...
1
vote
1answer
16 views

How to load Validation error dynamically in Angular/HTML

I've a form control where user has to enter Id. I've validated submit button to enable only when field is filled with value(only numbers). <input type="text" ng-model="Movie_Id" name="Movid" ...
0
votes
0answers
25 views

is there any advantage of using service methods as static instead of as instance methods

Since angular creates only one instance of a service, I'm wondering whether maybe I should switch to using static methods. Is there any advantage to it? This is how I use it now: ...
0
votes
0answers
17 views

Angularjs Style/highlight code block within ng-bind-html

In an effort to learn Angualr.js, I'm trying to collect a Wordpress post, using the plugin WP REST API and display it on a template in its correct format. I've got the post displaying the correct way ...
0
votes
0answers
24 views

Using an array inside array

I'm trying to generate a form which will have multiple vehicles and each vehicle should have multiple people inside it. I tried to do it by using an array inside another array. But for some obscure ...
0
votes
0answers
8 views

How to merge IONIC with TRIGGER.IO's forge api?

I am mad with searching for how to make my app work. It is based on the ionic framework on angular.js, and running on trigger.io's forge platform. There is currently no documentation of how to ...
0
votes
0answers
8 views

Ionic with mithril

I currently building an app which shows the recent posts made in our company's blog. The list item contains a title with an image (like in news feed). I implemented lazy loading using ion-scroll ...
0
votes
4answers
25 views

Angularjs: modify scope in js and use later in page

If there's something out there I'd love to see some documentation on something like this. I'm trying to add a value from the query string to the scope of my controller and use that value in another ...
0
votes
0answers
7 views

Angular ui grid (ng-grid) 3: Some definitions work quirky

I'm playing around with this angular plugin. Here's my issue - I'm setting the grid with no headers as default. When I want to set the grid header back, it doesn't work by changing the ...
0
votes
0answers
9 views

How to Ajax upload with Rails 4, Mongoid and Carrierwave?

I've been trying to ajax upload an image but have been stuck. My Image Model is: class Image include Mongoid::Document include Mongoid::Timestamps attr_accessible :images ...
0
votes
1answer
10 views

Angular post sending data to webapi as null

I don't know what i am doing wrong in my code i m trying to send some values to webapi controller it heating breakpoints calling correct method but always i get parameters as null. I tried with ...
1
vote
1answer
15 views

Get binding value of element in angular

say I have this div in a ng-repeat clause: <div ng-repeat="item in list" class="myDiv" ng-click="doStuff(item)"> {{item.title}} </div> And it's based on this model: $scope.list = [ ...
0
votes
0answers
21 views

AngularJS - show console log from directive in unit test

When testing filter in unit test, the console log from the filter is being output to the console window. angular.filter('myfilter',function() { return function(data,filtertext){ ...
1
vote
3answers
34 views

Using ng-repeat in table format

I have the following array in my module in Angular.js: $scope.hsbody = []; //Data array $scope.hsresult = []; //Data array $scope.hsProcess = []; //Boolean array $scope.hssuccess = []; //Boolean ...
0
votes
0answers
16 views

How to update an input field in angular and make it persistent through the usage of the factory?

I managed to create a blog based upon an example on https://thinkster.io/mean-stack-tutorial/, in which I added more features such as: Edit a post Delete a post However, although changes were ...
0
votes
1answer
21 views

After Route Change, run js script once

I am trying to implement a system, where after the route changes, I would like to run my animation based javascript only once. What happens is that, right now if you switch between pages, and return ...
0
votes
2answers
17 views

Cannot run php code, issue with angular routing

I came across this earlier thread while searching for help on this issue, but there are no responses so I'm at a loss. I am trying to submit a form and receive a php variable in return. I have no ...
0
votes
1answer
20 views

Migrating app to AngularJS?

i have existing web application where most of the time pages are submitted traditional way(like document.form.submit or ) I am planning to migrate to angularJS which i am learning. I am not sure how ...
0
votes
2answers
33 views

How to create horizontal elements in responsive way?

Hi I am trying to create an effect to archive effect like the following Desktop //lines up items vertically ---------------------------- | -------------- | | item1 | | | | | ...
0
votes
0answers
8 views

Entity framework code first - not able to serialize object to use in angular js as scope

I am using entity framework code first approach. I have design POCO classes based on table relation in database like product category and product have one to many relation so category class is being ...
0
votes
2answers
14 views

How can I access a factory from a directive?

I have some navbar items that should only be shown if the user is authenticated. Simplified view below: NAVBAR <body ng-controller="mainController as main">... <li ...
0
votes
1answer
8 views

Angular $resource calling error function on success call to server

Angular $resource is always calling error callback when calls are successful. I have verified through Fiddler that the server is returning json with a success code of 200. Keep in mind that this is ...
1
vote
1answer
22 views

angular type=[number] directive to block paste

I am looking for a way to block paste into numeric directive. I though about blocking all the paste events, I had done it before in jQuery, but I failed to do the same with angular. This is the jQuery ...
1
vote
0answers
10 views

Binding Angular Material Design Checkboxes to an Array in Controller

I have a group of material design checkboxes and I would like to bind their values to an array in my controller. To accomplish this I used the first method described in this SO answer. While the ...
0
votes
2answers
17 views

Finding objects in array

I just started out learning AngularJS and am trying to create a simple "store" web app. Here's my index.html: <!DOCTYPE html> <html> <head> <title>test</title> ...
0
votes
1answer
14 views

Why does ngModelCtrl.$dirty not update in my directive?

In my Angular app, I'm attempting to build a custom element that contains a simple input field of type text. I have this built here: http://plnkr.co/edit/ulhMuK26JZMfuERG7ch7?p=preview This works ...
2
votes
1answer
20 views

Delete multiple items in AngularJS array based on true vale

Trying to learn Angular and having an issue with deleting several objects at once. I'm creating a To Do app and when a user checks off several items and clicks a "Clear Completed" button would like ...
0
votes
0answers
7 views

Issue with SignalR / angularjs and salesforce OpenCTI

I have a web application build apon signalR & AngularJS. The application integrate with salesforce using OpenCTI. The issue is when I call salesforce openCTI API then they does not seem to work. ...
-5
votes
0answers
25 views

Choosing a technology for Web API? [on hold]

I am quite new to web development, I have to create a Rest based Web API that can be accessed through any device i.e Pc, mobile or a tablet. Currently I am unable to find one direction to start my ...
0
votes
0answers
6 views

Digitalocean Dokku Deployment

I am trying to push my yo angular-fullstack MEAN app to Digitalocean with Dokku. I've followed the documentation on Digitalocean's site, but I get the following error when pushing: git push dokku ...
0
votes
1answer
15 views

Content disappears when ng-controller is added

I have a list of fruit, and am able to use the searchFor filter to display the item I've searched for. I'd like to click a button, and send that item to a separate div on the page, using a controller. ...
0
votes
1answer
6 views

Angular-ui-bootstrap.d.ts is a TypeScript analog for angular-ui.github.io/bootstrap?

Does anybody know is angular-ui-bootstrap.d.ts an analog for UI Bootstrap? Does it fully covers ui bootstrap functionality? I tried to use TS $modal and seems that sometimes it works differently ...
0
votes
2answers
18 views

Angularjs count number of page view and show it

I want to implement the number of views feature in my website with angularjs. The feature is the same as stackoverflow question view counter : it's persisted. I was thinking of intercepting the http ...
0
votes
0answers
11 views

Adding Rows in a form with AngularJS

I bought an AngularJS and Bootstrap Template with the name CLIP TWO. This template has all the controllers and references built in, nothing is pointing to the angularjs sources from internet. Recently ...
0
votes
0answers
29 views

How to debug this AngularJS Error: [$injector:unpr] Unknown provider: $templateRequestProvider <- $templateRequest <- $route <- ngViewDirective

There are a couple questions floating around with the same error, and the common resolution was the angular.js version was out of sync with angular-route.js. I do not think this is the case with me. ...
1
vote
1answer
13 views

How can I query the iTunes search API in javascript?

I am trying to query the App Store for information on a given app, however I keep getting the following error. XMLHttpRequest cannot load https://itunes.apple.com/lookup?id=<some-app-id>. No ...
0
votes
0answers
16 views

Angular UI Bootstrap Accordion Not working in mobile

I am using nested accordions using angular-ui-bootstrap.Below is the html code.Accordions are working correctly on Desktop but not on mobile. Please note that having a plain text inside accordion ...
0
votes
0answers
9 views

How to handle file downloads with JWT based authentication?

I'm writing a webapp in Angular where authentication is handled by a JWT token, meaning that every request has an "Authentication" header with all the necessary information. This works nicely for ...
0
votes
2answers
13 views

Ionic - how to change textfield background colour?

I already set textfield background colour into transparent but not working in Ionic. .item .item-input { background-color: transparent; } I already read the ionic documentation but it's not ...
0
votes
1answer
7 views

Conflict in use of “selected” attribute in multiselect dropdown using bootstrap-multiselect and conflict with angularjs “selected” directive

I am using bootstra-multiselect along with angularjs in my project. During testing what i found is, the "selected" attribute name is getting conflict between these two. Following is my HTML markup for ...
0
votes
2answers
24 views

AngularJS - $interval not recognising variables

I am trying to make a basic function that adds 1 to the variable 'wood' every second. In javascript, a simple setInterval(function(){ wood++; }, 1000); would do the trick. In Angular, I've ...
0
votes
0answers
14 views

I'm having issues with ng-click when using it within an accordion w/ ng-repeat

Still new to AngularJS and am working on adding some bootstrap elements. I'm working on using an accordion to provide categories (and eventually sub-categories) that will filter a set of results. ...
0
votes
0answers
5 views

ng-model into ui-gmap-marker

I need help to use ng-model directive with ui-gmap-marker. My example app.js is: // DevicesController $scope.devices = { id: 1, center: { latitude: X, longitude Y }, options: { show: ...
0
votes
0answers
11 views

Social share buttons in AngularJS application

I am trying to implement social share buttons in my AngularJS application. It should support sharing on Facebook, Google and Twitter. Also, I need to be able to specify title, description and custom ...
0
votes
1answer
18 views

search json value for the first img tag in a string using javascript or angularjs specific filter

Working on an angular project and came across a situation where one of the endpoints doesnt exactly return an easily useable image object.. Say you have a json object in the console which returns ...
1
vote
1answer
7 views

Angular JS, Routing using pretty URL not working

When site nav menu items are clicked, it goes back to main local host. from: http://localhost:8888/devncode/ to: http://localhost:8888/about/ partials also do not load. what am i doing wrong? ...