AngularJS is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Controller (MVC) capability and reduce the amount of JavaScript needed to make web applications functional. These type of apps are also known as Single-Page Applications.

learn more… | top users | synonyms (1)

0
votes
0answers
5 views

How can I change my application state using ui-router from inside an interceptor?

My config file looks like this: app.config(['$httpProvider', '$locationProvider', '$sceProvider', '$state', '$stateProvider', function ( $httpProvider, $locationProvider, ...
0
votes
0answers
3 views

evaluating grunt <%= yeoman.dist %> variable in static html file

I used angular yeoman generator and I have some static imaegs which depend on user locale <img ng-src="images/<%= yeoman.dist %>.{{scopeVar}}.svg"/> is it possible to parse also static ...
0
votes
1answer
3 views

Items from an external Json-File in a Selectbox. How to change order?

In my selectbox, I load an external json-File with a lot of currencies. Json-Example { "EUR": { "symbol": "€", "name": "Euro", "symbol_native": "€", ...
0
votes
0answers
6 views

copy content to clipboard using angularjs not working properly

i have a issue . I am using ng-clipboard to copy content to clipboard . i have made dynamic function to return content for clipboard. Html <div ng-repeat="text in content"> //post ...
0
votes
0answers
6 views

AngularJS ng-table fixed headers

I'm using ng-table to display some information. I would like to make the header and footer of the ng-table fixed and force the mg-table to draw scroll bars within the rows. The mg-table ...
0
votes
0answers
14 views

Free alternative to Firebase

Recently, I have been learning angular.js. On the website, one of the examples is a real-time project manager, which updates when someone edits or creates a project. To achieve that, they use ...
0
votes
1answer
9 views

Parse / Angular web app - how to protect source

I am developing an web app using Parse.com and AngularJS, ie in a two tier architecture. My question is, how would I protect the source? Wouldn't anyone could completely copied my static files and ...
0
votes
0answers
4 views

Zimbra REST API - CORS (Angular.js)

I'm trying to access to the API REST of Zimbra with Angular.js e.g. 'use strict'; angular.module('demoApp') .factory('calendarData', function ($resource) { return ...
0
votes
0answers
13 views

how to convert image dataUrl into [objec file] using jquery or javascript before upload for client side

I am trying to resize the image file using canvasResize() then it convert the file object into dataUrl image size(57x57).I need to upload image with size(57x57) in server. Any idea to converting ...
0
votes
0answers
8 views

Creating a server / service client

I have been developing an app that has to access a DB and return data has charts in a web page. since it is to be added to another software i had to create it as a local server / servce, using self ...
0
votes
1answer
23 views

Bootstrap and Angular - Setting checked on checkboxes dynmaically

What I am trying to do is have two separate graphs, graph1 and graph2, and in each graph they will contain their own set of filter selections. The options to choose from are the same between the two ...
1
vote
1answer
11 views

Pass a variable to an abstract parent state using the ui-sref directive with ui-router

I am setting up a simple angularjs app that manages groups, in which I use ui-router for nested routing. var groupsApp = angular.module('groupsApp', [ 'ui.router', ]); Each group has ...
0
votes
0answers
11 views

Angular js - browser history.replaceState detect new url/path

I'm just changing the location url using browser history like this: $location.path(newUrl); history.replaceState(theHtml, title, newUrl); It works, but now i would like to check when the ...
1
vote
0answers
9 views

Why can't I view source maps with Angular and Browserify?

I am trying to step into the Browserify world. I am using a this tutorial as a starter. The source maps work fine. As soon as I require in angular the source maps disappear. Here is my browserify ...
0
votes
0answers
12 views

Corner folded with Angular Directive and separate CSS style

Here is my countBox directive. I need something like that. But I think this is not a good approach as CSS styling can't be changed, If I need another template in html page. How can I make CSS styling ...
1
vote
1answer
23 views

Angular Typescript Directive link function

I'm trying to create an Angular Directive using Typescript. My directive requires 'ngModel' and I'm also using a custom service injected in my directive. My main problem is that my service can't be ...
0
votes
1answer
18 views

Mongo db findOne query will not stop

I am using express js and angular js, but I found that the findOne method will not end. For every request, the backend function will get the obj first before doing CURD stuff: exports.article = ...
0
votes
0answers
13 views

Karma test fails in Firefox with strange error

I've got a very odd behavior with one of my tests. It runs successfully in Chrome, but always fails in Firefox. It tests a directive and error occurs in beforeEach block. TypeError: menu is null ...
0
votes
1answer
25 views

Javascript designing with angularjs [on hold]

I would like to build complex website like eventbrite with angularjs as single page application. I know how to maintain folder structure and create controllers, directives, templates, services and all ...
0
votes
1answer
9 views

angularjs bootstrap popover data-binding not working

Currently, i am trying to make the angularjs popover data binding work. Here is the html part: <div id="sortable" ng-repeat="object in arrayForShow"> <div ...
0
votes
2answers
18 views

Store the uploaded files into file system in Express Js

I am new to nodejs and want to know how to put a file into my system backend or even upload it to S3 etc. Here are the file object: req.body { homeColor: 'black', guestColor: 'white', ...
-2
votes
1answer
18 views

Passing AngularJS variable to PHP/mySQL query

I'm attempting to pass an AngularJS variable to a mysql query. I can't figure out why it won't work. Here is the code: $test = "{{tvShows[whatShow].tvdb_id}}"; $query = "SELECT * FROM tv_seasons ...
0
votes
0answers
6 views

How do you trigger a reload in Angular Masonry using the passy extension?

I got Angular Masonry to work in my AngularJS app using the passy extension but I want to be able to call a function or method in my controller that will trigger a reload of items in the container. I ...
0
votes
1answer
22 views

Angular + Jasmine Testing

I'm very new, (a total newb) to both AngularJS and BDD testing with Jasmine. My goal for this weekend is to become a little more competent with both. I'm currently following the tutorial that's ...
0
votes
1answer
13 views

Fail to upload files from AngularJS to ExpressJs

I am now using angular-file-upload packages to upload files. After I press item.upload(), it claims to be successfully uploaded the file, but I see the req.body is empty. Please Help! Here is the ...
0
votes
1answer
22 views

Angular js - infinite scroll pagination run it only when scrolling down

I've just applyed some logic for the infinite scroll pagination so i do: angular.element($window).bind('scroll', function () { //if chat is opened , if pagination is not executing yet ...
0
votes
1answer
21 views

Difference in these two ways of declaring AngularJS controller?

are these two equal? Is the latter just a "shorthand way" to write a controller? angular.module("root", []) .controller("index", ["$scope", function ($scope) { // .. }]); vs ...
2
votes
2answers
28 views

Why does ng-click=“test()” not work but onclick=“angular.element(this).scope().test()” does?

I have defined an angularjs directive as follows: jtApp.directive("jtWizardPage", [function () { return { require: ["^ngController", "^jtWizard"], restrict: "E", replace: ...
-1
votes
1answer
30 views

why checkbox is showing always false value

I have html structure like this <div ng-controller="parentCtrl"> <div ng-controller="childCtrl"> <input ng-model="selectAll" id="selectAll" type="checkbox" ...
0
votes
1answer
12 views

jQuery resizable function not working in angularjs directive

I am building a form builder which could be draggable (finished) and each element could be resizable in the grid system. So, I used jQuery ui for draggable function and it works fine. However, in ...
-1
votes
1answer
21 views

typeahead not working with lower version of ui bootstrap

Here is the plunker link if you changed the version of <script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.4.0.js"></script> to ui-bootstrap-tpls-0.6.0.js, it works fine ...
1
vote
2answers
19 views

Why does AngularJS not recognize that the value of my variable changed?

I am using the following function in my app controller: this.state = { net: false, netd: false, network: function (active) { if (active) { this.state.net = true; ...
0
votes
0answers
18 views

AngularJS Select2 value can not assign at first row of grid

I'm using select2 tool in my project using angularjs. While assigning value to this select2 in a grid using angularjs in first row, it is not assigning, but if I'm trying to assign in next to first ...
1
vote
1answer
17 views

Displaying dynamic JSON array using AngularJS

Hi I have an AngularJS application. I am connecting to server and getting some JSON array data. It is dynamic data and I am not sure how the content is. I want to display it as a table. This is how ...
0
votes
2answers
17 views

How to configure data being used by angularjs ng repeat

When data is configured for angularjs like this: array = {"0":{"type":"Rocker","price":51},"1":"type":"Car","price":26900}}; The data will load into the HTML, but I can NOT sort or filter it. If I ...
0
votes
1answer
20 views

AngularJS: Two-way data binding not finding model in Controller

I am writing a directive which could be used at multiple places. The only requirement is that Controller using the directives will have their own model budgetCategories. My Controller looks like ...
0
votes
1answer
31 views

jquery validation is not working with templates inside ng view

Simply I'm using JQuery validation to validate this simple form <form id="getting-started-form"> <label>Name</label> <input type="text" id="txt-name" name="name" /> <br ...
1
vote
1answer
40 views

AngularJS: Variables “Global” to a Service

I am still working on my first AngularJS project (learning a lot as I go by mimicking an existing app) and wos wondering about best practices and better techniques. I have a service which pulls form ...
0
votes
1answer
39 views

Syntax: how to listen or an $emit in a Service?

I want to listen for 'myEmittedEvent' on rootScope, but have a problem with this code: app.service('MyService',function($rootScope){ $rootScope.$on('myEmittedEvent', function(){ ...
0
votes
0answers
10 views

Angular + DataTables: Options Not Working Correctly (bDestroy involved)

Set-Up: I'm using the jquery-datatables-rails gem. I added this directive (http://jsfiddle.net/zdam/pb9ba/) from https://groups.google.com/forum/#!topic/angular/vM2DEMK_NMA and tweaked it to come up ...
0
votes
1answer
10 views

unable to get datepicker to work with ng-repeat

I'm displaying a table row for each item in my $scope.items through an ng-repeat Calling the ng-repeat prevents the jquery-UI datepicker popup from appearing. Though if I remove the ng-repeat, it ...
1
vote
1answer
31 views

How to show and hide an element in my case?

I am trying to show and hide an element when user clicks my ul element I have something like <ul ng-click="expandMenu =!expandMenu"> //when clicks ul, the wrapper shows </ul> <div ...
0
votes
1answer
24 views

How do I access the transclude function from a directive link function

Short question How do I get access to the transclude function within a directive link function using Angular 1.1.1? What I'm trying to achieve Here is the (broken) fiddle ...
2
votes
3answers
32 views

AngularJS Expression in Expression

Is there a way to have AngularJS evaluate an expression within model data? HTML: <p> {{Txt}} </p> Model: { Txt: "This is some text {{Rest}}" } { Rest: "and ...
0
votes
0answers
17 views

angular ngShow animation not working

this is from angularjs example https://docs.angularjs.org/api/ng/directive/ngShow I put everything in my local why is not working on my local ? what did I miss ? <!doctype html> <html ...
0
votes
0answers
17 views

Trying to send a json file to communicate with angular.js web application

I am using nodejs. I am stuck on how to communicate to angularjs web application. I am actually following the book called angularjs. I am trying to figure out a way to grab the json when the http ...
-1
votes
0answers
23 views

Best pattern for maintaining large data in angularjs [on hold]

I am a relatively newbie in Angularjs. I understand that we can use an angular service to store the specific data and cookieStore can be used for storing a small chunk of user specific data for ...
1
vote
1answer
16 views

HTML tag in scope of angularjs

I need to put a <br /> tag in $scope.myText in a controller, how to do that ?
0
votes
1answer
13 views

How to call a function on the scope from a string value

I have an object containing an array of strings $scope.actions=[ "add_inscription", "add_tools", "add_instruction", "remove_inscription", "remove_tools", "remove_instruction" ...
0
votes
1answer
26 views

How to animate my element in my case?

I want to create an animation using Angular js I have something like HTML <ul ng-click="expandMenu =!expandMenu; mycss='expand'"> <li id='unit-btn' ng-class='mycss'> ...