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
2answers
18 views

AngularJS select not populating dynamically

I have the following JSON (test JSON as how it comes from the server): $scope.allCategoriesAndSubcategories = { "category" : { "categoryname" : "pasteleria", ...
0
votes
0answers
19 views

How to change color in progress for each div using AngularJs?

I have scenario where i want to display progress based on user actions, i have 5 steps that should observe user action and change color accordingly.Onpage load i want to make first div (file ...
0
votes
1answer
9 views

performance problems simple android game - ionic - firebase - angularjs

Im making an android game using ionic, the piece of code responsible for the navigation to pages and the detection of which page (and level) the user is on is really slow (3 secs load each screen). ...
0
votes
1answer
10 views

Convert angular view into image for clipboard

I would like to render a view from an Angular directive into an image so that a user could right click on it, and copy it to clipboard. Basically I have a directive that compiles information into a ...
0
votes
0answers
16 views

Adding back and empty method

I am using Google Autocomplete and also a date plugin as a search form and I have targeted the on event with an ID element because I wish to hide it and use another. I am using the $state to show or ...
0
votes
1answer
10 views

Remove column cotext menu from angular grid

I am using angular grid ui-grid 3.0.I have to remove column context menu icon from this please solve my issue
0
votes
1answer
21 views

Angular JS - Passing ng-click $index value to a controller function then back to another view

I am pass the ng-click $index value to my controller then using it's value in an ng-repeat to my data from an array but getting an error suggesting "ReferenceError: myChoice is not defined" My view ...
1
vote
1answer
25 views

AngularJS: how to generate dynamic ng-model for input type = text

My current scenario is: I've doing nesting repetition like follow: <form name="task_form" ng-app="myApp" ng-submit="tasksubmit()"> <ul class="items-list"> <li ...
0
votes
2answers
10 views

Angular mock method on element

I am testing a directive, where I use the library Mobiscroll. I know that Mobiscroll also has a angular components but I am using older versions of the Mobiscroll library at the moment, so I am not ...
0
votes
0answers
18 views

angularJS Custom directive functionality works using ng-click but not using ng-mouseOver

Requirement goes like this :- I have left navigation panel which has to be in sync with the items added in the main active view by the user and has to display in tree structure. Basic idea is to ...
1
vote
1answer
12 views

unable to get the index of the selected item in AngularJs

I have a drop down with values which I am using a drop box to display the items. I want to handle the click event and print the index of the element in the array. The view code is as below: ...
0
votes
1answer
3 views

Angular Utils Pagination Directive not showing first page

I am using Angular Utils Pagination Directive in my app. Basically it works fine but problem is that when I filter table it doesn't show first page . For example in this plunker when I searched "meal ...
0
votes
0answers
15 views

Angular $http.get() does not work in Phonegap DevApp

For my Phonegap App I'm trying to load a JSON file using angulars $http. I got this service: cApp.factory('language', function ($http) { return { getLanguageData: function () { ...
0
votes
3answers
16 views

Angular expression not getting evaluated

Have just started Angular and I have the below code and I have spend many hours trying to figure out what I am doing wrong and why I am not getting value for dish.price,dish,description etc, could ...
0
votes
0answers
9 views

can I use a lat / long pair on a nodejs REST endpoint?

my MEAN stack app is requesting user data based on a lon / lat coordinate. I currently send the coordinates via POST from an angularjs service to this expressjs route and handler: getUsers = ...
0
votes
1answer
13 views

Downloading a file from MongoDB to local filesystem

I have asked various questions and got only limited answers and it has gotten me this far: Mongoose code : app.get('/Download/:file(*)', function (req, res) { grid.mongo = mongoose.mongo; ...
2
votes
2answers
29 views

AngularJS - How create a form with specific format?

I'm newbie in AngularJS and I'm working on ACTIVITI. I need to create a form in a specific format. Every response must be in the form of: { "taskId" : "5", "properties" : [ { ...
1
vote
2answers
14 views

How can I raise an event at a specific time in angularjs?

I made a web page for by AngularJS. I want my web page to take action within a specific time. for example, If the 2016-01-07 11:00:00, ng-show wants to take action. Timer is using Angular-timer. ...
0
votes
1answer
26 views

memberID not defined in AngularJS

I am trying to update the details of a specific user and it keeps giving me the error that memberID is not defined in the script. What should I write instead? Already tried memb and still gave me the ...
-2
votes
1answer
18 views

How to add another div for the existing page using angularjs

I'm trying to develop single page app.I have an index page,in which I have two buttons(load,add).When I click on load button,main page gets loaded into the index page. If I click on the add button,I ...
0
votes
2answers
39 views

Angualr js How to handle http error globaly

HI all i have 2 question angular try to handle server $http error globally. so written below code in app.js angular.module('mname',[]) .config(function ($provide, $httpProvider) { ...
1
vote
4answers
53 views

How to set attributes, if ng-if condition is true

How can I set attribute if ng-if returns true in below code data-validator="" and data-validator-msg="" set only when condition is true and if it returns false then both attribute not to be set but at ...
1
vote
2answers
23 views

How to load the multiple js files in single javascript file, without using document.write?

var head = document.getElementsByTagName("head")[0]; function loadjscssfile(filename, filetype) { if (filetype == "js") { var fileref = document.createElement('script'); ...
0
votes
1answer
42 views

Angularjs javascript modals

I'm using Angularjs for my SPA project. So far, I'm managing to get what I want. Still, I'm failing to get MODALs to work and I really need a FOR DUMMIES explanation how to do it. Here are some ...
-1
votes
3answers
16 views

Run authentification code before displaying the page [duplicate]

I put in place a simple login system in my angular application similar to the one at http://demos.angularcode.com/angularcode-authentication-app/#/login The problem that I'm facing now is that if I ...
0
votes
0answers
13 views

iis 404 error when removing hash tag from url angularjs app

I'm developing a single page app using angularJS(client) and mvc web api (server). I have two physical page first Login.html and second Index.html when user successfully log in redirects to ...
0
votes
1answer
9 views

Uncaught ReferenceError in angular js controller function

when i call a function which is defined in controller am getting function not defined error. Uncaught ReferenceError: deleteBook is not defined <!DOCTYPE html> <html> <head> ...
0
votes
0answers
21 views

text color should be changed when input completes a word

i am using angularjs text editor, i want to change the color of text when input string completes a word <div text-angular ng-model="htmlContent" name="demo-editor" ...
0
votes
1answer
33 views

watching on the select item in Angularjs

I am having a div which contains a set of dropdown to select a criteria. We can add or delete criteria using the plus and minus buttons. The values to fill in the dropdown is fetched from an API. The ...
-4
votes
0answers
30 views

Validation not working in angularjs

I have created simple form using angular js and typescript. i am trying to implement some client side validation for the same. View <div data-ng-form="sampleForm"> <div ...
2
votes
0answers
11 views

Karma-Jasmine: How to test ionicModal in a factory?

THE SITUATION: I am unit testing my Angular / Ionic app. I am testing the lockscreen and having troubles with the modal. I am getting the following error: TypeError: Cannot read property 'hide' of ...
0
votes
1answer
16 views

Multiple Sticky header with angularjs Plugin

I tried to get angular plugin for multiple sticky header. I got same using javascript and css , codepen.io/chrissp26/pen/gBrdo Can you please let me know any angular directive with same ...
1
vote
1answer
25 views

Create table composed by multiple components

So, as I started to dig in to angular2, I figured I create a table listing persons. One component for creating the table (person-list), and one for component for each person in the table ...
2
votes
2answers
24 views

angular directive with attributes linked to function outside the parent scope

I have an angular directive (restrict to an element), its have an attribute to link to a function (using "&" attribute) for example: app.directive('myDirective', function () { return { ...
1
vote
1answer
25 views

Angular ui router going to default route always

I have about 20 route in my application, however from about the 15 routes and over every time i navigate i get redirected to the default root, and when i try again , doing the same steps as at first i ...
1
vote
2answers
28 views

Angular ng-click get params from jquery trigger event

With jQuery I can pass params to trigger event and get them from a function. Like this: $('div').trigger('click', [1]) $('.classname').live('click', function (event, param) { alert(param); })​; ...
3
votes
0answers
31 views

Secure Spring RESTful API with Google OAuth2 Authorization server

I plan to create application with Spring RESTful API backend and client on AngularJS. I'd like to secure my Spring RESTful API with Google OAuth2 Authorization server. I have an architectural ...
1
vote
3answers
34 views

True, false statement show html

First up, my apologies for the horrible title but I don't know what kind of property this code is. I have a list of users, %li{"ng-repeat" => "user in users | filter:userSearch"} .container ...
0
votes
0answers
20 views

Dynamic properties on ngFormModel?

I've been trying to work with ngFormModel and dynamic properties from classes, without any luck. What happens is that the first value is bound correctly, but as soon as i change the variable to ...
0
votes
1answer
16 views

On demand data load using Scrolling in AngularJS datatable

I have used angular datatable in my application. I applied the options as given below, $scope.dtOptions = DTOptionsBuilder.newOptions() .withOption('responsive', true) ...
0
votes
1answer
11 views

delay in hiding loader icon after $stateChangeSuccess

I know there's a lot written about this, but I can't find a solution to this particular problem. When changing a state, I want the current state to be hidden and for the spinner to be displayed on ...
0
votes
0answers
12 views

Nested dynamic directives in Angular

I am currently trying to create a site that is completely dynamically built. Meaning that an admin create a JSON object from an editor and that JSON object should be used to create the layout on the ...
0
votes
2answers
22 views

how to handle jsonarray response using angular js? i am getting

I am getting this error: Duplicates in a repeater are not allowed. Repeater: session in privateKeyList key: string:I This is my JavaScript code: success(function(data, status, headers, ...
1
vote
0answers
22 views

modal - buttons not working - controller failure

I use the backand-app from ionic market. Now i try to have the login as a modal. On standard i have a login-tab, where user could do the login. But this is not really nice, so i want to do it with a ...
0
votes
1answer
11 views

Integrating full calendar ionic view

I have updated all the cordova package just am an beginner of ionic. Anyone can help to integrate full calendar view in ionic page. controller page .controller('pageCtrl', function($scope, ...
0
votes
2answers
12 views

how to hide direct page links from Pagination Directive angularjs?

I am using this Pagination directive https://github.com/michaelbromley/angularUtils/blob/master/src/directives/pagination/README.md I want hide direct pages links(1,2,3) only need next and previous ...
0
votes
0answers
10 views

Printing a specific div element on a jade page

I have a Jade file html include ../../../public/UI-Master-Layout/Jade/userMenu.jade include ../../../public/UI-Master-Layout/Jade/footer.jade include ../../mixinHelp.jade ...
0
votes
1answer
44 views

AngularJS: how to generate dynamic ng-model

My current scenario is: I've doing nesting repetition like follow: <form name="task_form" ng-app="myApp" ng-submit="tasksubmit()"> <ul class="items-list"> <li ...
1
vote
1answer
12 views

grunt-protractor-runner not really testing

I use protractor to test my angular app. When I manually launch protractor it works properly and tests everything but the trouble comes when I try to launch it through grunt. When I launch my grunt ...
0
votes
1answer
23 views

how to initialize value inside run block in angularjs

how to initialize value inside run block in angular.js directives.value("value1","test1"); directives.run(function(value1){ value1="test2"; }) Is this possible