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. The ...

learn more… | top users | synonyms (2)

0
votes
0answers
6 views

How to offline install an npm based project?

I have to set-up an angular dev environment on a windows 8 pc which has no internet connection (not even temporarily). Let's say I want to start with angular-seed. What options do I have to get it ...
0
votes
1answer
16 views

angularjs invoking objects and returning values

I have a button which I want to toggle with ng-show based on the value of my Id. in my javascript I call my service from on function and then using them from another function. My issue is when using ...
0
votes
0answers
11 views

How to sync with server data by AngularJS?

Angular has two ways data binding which is cool, so I just wonder if it could be sync in Server-Client binding? For example, usually we would request data by $http $http.get(apiURL) ...
0
votes
0answers
10 views

md-datepicker must be a Date instance Error

I have a problem here. I want to use Angular Material datepicker in my modal form. I simply added it to my form like this <md-datepicker ng-model="new.warranty" md-placeholder="Enter ...
0
votes
0answers
8 views

Loading data in details modal using AngularJS

I'm trying to load data into modal using AngularJS. I did the load the data into a list of "cards" and it works fine. But, to each card, I need to open a details modal and to load the rest of the data ...
1
vote
2answers
10 views

Angular 2 Dependency Injection singletons

I have a standalone class called Poller. I want to inject a shared instance of this class into different components. If I try the following: export QuickPollingService = new ...
0
votes
0answers
3 views

Cordova camera plugin windows 8.1 getPicture() method issue

When i take a new picture, i get the following error message : undefined or null reference error The exception is fired at the following function of the "CameraProxy.js" file function ...
0
votes
0answers
12 views

How can i update column value in ui-grid

I am using ui-grid table plugin.i want to update count value if user enter same id. if id is not same i want to update whatever user enter in the count textbox value. count will increase only if user ...
0
votes
0answers
2 views

Angular material mddatatable select maximum one row

I have table. When i select, i can select multiple. SO, in selectedrowback, i want to be able to select maximum one row. How can i do this? I was first using deleterowback but i couldnot do it there ...
0
votes
1answer
11 views

Arguments are same for angular directive

I have the following directive: app.directive('filterComponent', function() { return { restrict: 'E', templateUrl: 'filter-component.html', link: function(scope, element, attrs) { ...
0
votes
1answer
10 views

AngularJs ng-click not working inside directive dynamic template function

I created a angularjs directory for a inline editor.HTML template is created by using function and compiling with the HTML root element.My problem is I want to change a status variable when I click on ...
0
votes
2answers
22 views

Disable select option with angular ng-options

following the angular documentation ng-options guidelines I write that part of code: <select ng-model="model" ng-options="item.CODE as item.NAME disable when item.DISABLE for item in list" ...
0
votes
0answers
7 views

How to make a div within ng-repeat to scroll horizontally using scroll magic?

So this is the HTML I have, where I have a div in ng-repeat which prints thousands of names. What I'm trying to achieve is horizontal scrolling. I've done it using css where a fixed width is given and ...
0
votes
0answers
2 views

Apache Cordova and Play! framework CORS issue

I read that Cordova set in the Headers of its http requests the Origin as coming from "file://" (why?). So I tested to ask my server running on Play! with some requests like this: curl -H "Origin: ...
0
votes
0answers
3 views

Programatically select row in UI-Grid without listener

I want to select all rows of a grid by default, and I managed to do so by adding a data listener in onRegisterApi as specified in this answer: onRegisterApi : function(gridApi) { ...
0
votes
1answer
13 views

ngRoute doesn't get load with requirejs

Hey I am new to requirejs, I am trying to use requirejs with angularjs,but I get struggling with dependencies. The first dependency of angular which is ngRoute, doesn't get loaded. I get the following ...
0
votes
1answer
26 views

Angular js not routing to default page after browser page refresh

I have angularjs route with the following definition: moduleA.config(function($routeProvider){ $routeProvider. when('/A',{templateUrl:'A.jsp'}). when('/B',{templateUrl:'B.jsp'}). ...
0
votes
1answer
14 views

how to register click event in directive in angularjs

Im new in angularjs. I have a div #single I want to change the background color and then want to call back-end server on the click event. I dont know how to this in angularjs custom directive . any ...
0
votes
2answers
18 views

when the value of ng-show is true then also element is not visible

I am trying to hide and show tabs using ng-show . I have written the following code <li ng-show={{hidetabs}} > <a data-toggle="tab" id="second_tab" href="#menu1">Customer ...
0
votes
0answers
8 views

Implement .NET redirect to Angular's URL

I have ASP.NET WEB API & Angular SPA. For authentication purposes (once it's done, actually), I have to make a redirect from backend to some front end uri. Currently backend routes are ...
0
votes
0answers
17 views

angular component and ng-click

I'm trying to get an angular component to work. This component links to a template which has an ng-click on it. basically what used to happen (and used to work) was an ng-click that has tab = 'a' and ...
0
votes
0answers
6 views

Rails inline/asynchronous server side validation to AngularJS frontend

I have managed to get my server side validations to my AngularJS frontend with this great post: Server form validation with Angular.js. I fill in the form, submit the data and if there were any ...
0
votes
0answers
7 views

PHP Slim API returns null after calling get

I run the following code in Postman but all my fields end up as null. I used echo json_encode($cus) to see this. I've been fiddling for hours but I'm not sure where my error is. Any help would be ...
0
votes
2answers
9 views

angular.min.js:63 ReferenceError

Am getting following error when use a factory into angular module i have factory module like below angular.module('pollServices', ['ngResource']).factory('Poll', function($resource) { ...
1
vote
2answers
23 views

Using AngularJs Service in more than one controllers

I am struggling with angular here. What I learned is that factory and service functions of a module create only one instance of an object associating properties ( functions and variables) with it. And ...
-1
votes
0answers
9 views

angular-sanitize.js:6 TypeError: Cannot read property 'toLowerCase' of undefined

$scope.searchCat = function(){ $scope.searchArray = []; $scope.searchTerm = $('#search input[type="search"]').val().toLowerCase(); } <ion-header-bar class="bar ...
0
votes
0answers
10 views

IE “Style Calculation” performance incredibly slow in AngularJS app

I have an AngularJS app using Angular Material and data loaded from an external API. THere is nothing particularly groundbreaking with this app, and all of my tests run absolutely fine in Chrome, ...
0
votes
1answer
10 views

Preview Xml data or Json object as XML tree in Html with Javascript

I have an Json object or xml Data that I would like to preview this in html as React is doing: https://github.com/marushkevych/xml-display-component but I don't want to mix Javascript and Reactjs. I ...
0
votes
0answers
12 views

UX | Button Design and Basics

I am currently starting doing Webdesign and UX and I am new to this topic. I have a webpage where I have various buttons. Positive Actions are Green and negative actions are red. An Edit-Button is ...
0
votes
0answers
7 views

how to change the font color of placeholder in md-chips?

Here's my code. I have a md-autocomplete and I want to change the font color of the placeholder of the chip. <md-chips flex class="md-accent" ng-model="vm.job.skills" ...
0
votes
0answers
10 views

Disable swipe left and right in angular bootstrap corousel

I want to disable the ng-swipe-right and ng-swipe-left action for angular bootstrap corousel. Here is what I tried: After the corousel loads: $timeout(function() { ...
0
votes
0answers
5 views

How to call WebMethod inside Class file using Angularjs?

I am calling WebMethod using angularjs call. I got response when WebMethod inside .aspx.cs but not getting response if WebMethod inside class file(class1.cs). Call return 403 Forbidden error. ...
0
votes
0answers
9 views

How to show save file dialog in Safari?

I need help. I have angular app and using DocRaptor want to generate PDF and save pdf as file. And I cant trigger the dialog to save file in Safari with any method what I have found on Stack Overflow. ...
1
vote
5answers
29 views

Sort JSON data by date javascript

I am trying to sort my json data by date but its not working. here is what I am trying. please correct me where I am making mistake Sample Code var temp = [{ "id": 17608, "title": "abc", ...
1
vote
1answer
10 views

get xml response using soap request in angular js ionic

I'm making a request using AngularJs in Ionic with a soap method, my response is in XML. After request I have an error in the console; please help me I don't know much about AngularJs and Ionic. ...
0
votes
0answers
15 views

Angular JS : Change the child node name of the data source in Kendo UI tree view

In my Angular application I am using Kendo UI to represent tree view. Here is my index.html <div ng-app="ontology"> <div ng-controller="ontologyCtrl"> <h4>User ...
0
votes
0answers
15 views

Use of $compile , transclude , Controller and link in angularjs

Recently I am going through concept of Custom Directives. When I was looking into deep of concepts I found few terminologies like $compile -> Which traverse through DOM and find its directives ...
4
votes
1answer
30 views

Angular multi select tree does not work

I used with my project this plugin angular-multi-select-tree in github. This is the way I included it to my project: installed from bower bower install angular-multi-select-tree -save after this I ...
0
votes
0answers
14 views

[Chrome only]- AngularJS vsRepeat - Repeated network calls happen on scrolling search results

I have a user search result list which loads the user details with their profile picture. I am using vs-repeat directive for it. However, the issue is when I scroll down the results and scroll back ...
0
votes
1answer
10 views

Angular Material: Validation error on non form input

I would like to use Angular Material library in my project for showing the web page in Material design. I'm having input fields directly in a div, instead of having inside a form . How to properly do ...
0
votes
0answers
24 views

nested ng-repeat withng-switch repeating elements

This is the first time I am posting a question on this site, also I am a beginner to angular js I have requirement to create a form dynamically from a json which is created separately from another ...
0
votes
0answers
11 views

Pretty URLs and folder path gone away

I have a project uploaded inside a subfolder, html5 mode enabled, and when I navigate to www.mysite.com/subfolder I get a redirection to www.mysite.com What is causing that and how do I keep the ...
0
votes
0answers
17 views

MongoDB exception is not passed over Angular

In My Application we use Angular as front end and MonoDB data Base And we are doing http call . Without starting MongoDB Instance If I start my Server and try to access Application DB exception is ...
1
vote
1answer
16 views

Angular last '/' route to proper URL

I want to route with last '/' or without last '/' to proper URL . Here is test code. function configSignupLandingState ($stateProvider) { $stateProvider.state('test', { url: '/test', ...
0
votes
2answers
20 views

AngularJS ui-router: access child scope variables

I have such routes: .config(function config($stateProvider) { $stateProvider.state('articles', { url: '/articles', views: { main: { controller: 'ArticlesCtrl', ...
0
votes
3answers
37 views

How to get nested json object for given form details?

I am trying to get json object and I have tried it but it's coming like in a plain json format, but I need it like in something nested json format like what I explained in the fiddle. How can I ...
2
votes
1answer
29 views

AngularJS keep a temporary value in ng-repeat loop

I have a filter which will generate a random value: function randomize() { return function (input) { if (input !== null && input !== undefined && input > 1) { ...
0
votes
0answers
6 views

How To Access ngCordova Camera Image From Inside JavaScript

I am currently developing a photo-editing app with the Ionic Framework. At the moment, I have used an open-source JS Drag & Drop photo editor and have modified accordingly but I need to be able to ...
0
votes
1answer
34 views

using angularjs to fetch data doesn't work correctly

I am trying to develop a simple web application using angularjs i have a table city that is created using entityframework database first. I added angularjs nuget to my project.and create 2 files in ...
2
votes
3answers
43 views

Disable form element if user click different button

I have this 2 button which is link to the same modal form. This is the form. <form name="addUser" ng-submit="(addUser.$valid) ? add() : '';"> <div class="form-group has-feedback" ...