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

How to loop over and display data from JSON in hierarchical way?

I have JSON array containing objects that are not structured hierarchically, but have have one-to-many relationships, similar to example below: [ {"id": 1, "parentId": 5}, {"id": 2, ...
0
votes
0answers
2 views

Initialize leaflet map in Onsen-UI Phonegap app?

I am developing a simple app with PhoneGap, Onsen-UI and Leaflet. One of the app pages should have a map that users can interact with. I'm having problems finding the right place to initialize the ...
0
votes
0answers
5 views

asp.net print button “batch-actions-button”

I am looking at an existing code which on the VIEW display a Print button with a checkbox next to it. If the checkbox is selected, then all the the rows in the table (angularjs) is selected. Here is ...
0
votes
0answers
6 views

Environment configuration at build time with npm

There are several blog posts that explain why switching from grunt or gulp to building with just plain npm is a good idea for example this one by Cory Hourse or this one by Keith Cirkle. One thing ...
0
votes
1answer
13 views

Reading json data from a file in d3.js not working

This is a d3 code that generates a line graph from data.tsv file. However I want to input data in form of json. So what will be changes required here. There is a line marked with *'s .I have changed ...
0
votes
1answer
12 views

Equivalent of $state.go in Cordova?

I'm developping a cordova mobile app. How can I redirect the user after Oauth login? What is (in cordova) the equivalent of the $state.go used in Ionic? Thanks!
1
vote
1answer
28 views

Please help me to implement filter in angularjs

How filter array by property exist in another array? I have this two arrays in my control: this.items = [{ "Id": 1, "TypeId": 1, "name": "Michael" }, { "Id": 2, "TypeId": 2, "name": ...
0
votes
0answers
4 views

One button shows for a fraction of a second before another hides even though they depend on the same function

When I click on the button to go to new slide, the second button appears for a fraction of a second before the first button disappears. This is despite them having ng-show directives that rely on the ...
0
votes
0answers
7 views

angular typescript file upload

im trying to perform Upload File function in angular and typescript with web api these are my service function: UploadProfileImage = (data: any): any=> { var requestObj = { data: data }; ...
0
votes
0answers
13 views

Returning values from a mocked angular service and calling through

I am having some problems figuring out how to write tests correctly for a controller method that relies on calling an Angular service and returning a certain value, but, I need to be able to test the ...
0
votes
1answer
40 views

Remove elements from inside Array prototype

I'm trying to extend js native array inside angular service to add some extra features without prototyping global objects. app.factory('Collection', function($http, $q) { var Collection = ...
0
votes
0answers
12 views

Change filter on angular ng-repeat from chrome console

Is it possible to change angular filter on ng-repeat loaded elements on chrome console? I need to do this because I want to experiment some methods for overload part of an angular application from ...
0
votes
2answers
26 views

Ng-model with button

Good morning, I make a loop to catch "name " in an array and each "name " has variables with information. I need the ng -model receive the value of the "name " when I click on the "button" to oh yes I ...
0
votes
0answers
10 views

DI + Angular + Require

Please could anyone offer me some advice as to where I am going wrong with my current solution. Background I wanted to use Angular alongside my ASP.NET MVC web project, which is an ecommerce ...
0
votes
0answers
9 views

Custom template not gaining focus nor editable, if you have used mouse click to edit it

Custom template not gaining focus nor editable, if you have used mouse click to edit it. Please see this sample. Steps to reproduce the issue: 1) Click a cell under the "Gender" column. 2) Then ...
0
votes
1answer
25 views

Angular $stateProvider hits two states

In being given the task of converting an old Flask web application into Django, I was introduced to the world of Angular. I am still very new, and am having troubles with Angular's ui-routerJs. It is ...
1
vote
1answer
23 views

How to check ngform is valid or not

I am using ng-repeat for dynamically creating controls as below <div ng-form="mainform" ng-repeat="usr in users"> <userdirective ...
0
votes
3answers
38 views

AngularJS: `{{ x + ', ' + y }}` vs. `{{ x }}, {{ y }}`

Does {{ x + ', ' + y }} make any difference to {{ x }}, {{ y }}? Especially in the aspect of watcher's cost? I'm wondering if I can reduce the number of digest loops by combining two-way binding ...
-1
votes
1answer
18 views

Can I use TypeScript only for parts of Angular App?

I have an Angular 1 app I am converting over to Angular 1.5 and want to start transitioning it to TypeScript. However, it shares an app.js with the old version and I don't want to overwrite it quite ...
0
votes
0answers
6 views

Templating with Meteor and Angular

When using angular package i can't use the templating package. Otherwise I get this error: While determining active plugins: error: conflict: two packages included in the app ...
1
vote
0answers
23 views

Properly filtering an input field in Angular

I found this directive for filtering a field for currency, so a user just needs to type and the decimal is implied. It works well, except that a user is able to put in a letter if they press a letter ...
0
votes
1answer
22 views

How to make a web project available through git?

I have a simple web project that I made on the top of https://github.com/yeoman/generator-angular. This generates a great project environment with bower and grunt support, where the .js, .html, and ...
-4
votes
2answers
20 views

Display element with more than one condition with AngularJS

I want to display an element if two conditions were checked, if not the element still hidden. Do you know how to do that? Thankx for advance
0
votes
1answer
11 views

Angularjs bind to controller to execute function when changed

Trying to use the new bindtocontroller for a directive however, struggling to find any working examples of how to execute a function when item changes. Directive:- .directive('freetextNote', ...
1
vote
2answers
14 views

Angular view: always going back to otherwise link

Hello I have a problem... .state('tabs.personal.personalview', { url: 'tabs/personal/personalview', views: { 'personalview-view': { templateUrl: ...
0
votes
0answers
15 views

Positioning modal window in Angularjs

I have specific problem with modal window on 'angular 1.2.19'. When I refresh the page and try to open the modal, it's position is not properly calculated (should be centered), but when i close the ...
0
votes
0answers
6 views

Angularjs ui-sortable - _connectedSortables is undefined

I have 2 sortable lists and I'm trying to connect them so that I can drag items from one list to the other. When I drag an item I get an error in sortable.js. callbacks.update is referencing ...
0
votes
0answers
8 views

Heartbeat/keep-alive service to refresh CSRF token

We have an Angular web application fully service oriented and the ng-front end is consuming the REST web services via ng-services (so far standard). To avoid any automatic POST request from bots or ...
-1
votes
0answers
32 views

How to print JSON with several levels

Need to print values in JSON while has several levels. I have to use AngularJS to print the data. JSON looks this (it's not complete) So in order to print oranges, I have to do ...
0
votes
0answers
15 views

Fetech API cannot load, Response to preflight has invalid HTTP status code 401 [duplicate]

I am using the Woocommerce Node API and I used browserify to generate a client side library with the module and all its dependencies. I am getting the following error in my browser console when using ...
3
votes
1answer
25 views

angularjs - unable to call same directive from different pages

I'm working on an app that needs to have the same directive on each page. Unfortunately, it is not working as expected. Let's say I open the app and visit page with ID=1 The page with ID=1 loads, I ...
1
vote
1answer
17 views

Why does the request function of my AngularJS HTTP interceptor get called so many times?

I have an AngularJS HTTP interceptor: $httpProvider.interceptors.push([ "$rootScope", "$q", "$location", function ($rootScope, $q, $location) { return { 'request': ...
0
votes
0answers
9 views

How to show data in UI correspond to Option field

I have Java restApi implementation which will return Json data as Map<String, List<StudentClassDto>> Where String as "StudentClassList" and list of StudentClassDto as objcet of ...
0
votes
1answer
22 views

using a timeout and scope apply - angularjs

I've just come on board to a new project and I see this pattern alot in angular js code: _.defer(function () { $scope.$apply(); }); This seems wrong to me but I'm not sure why. What are possible ...
0
votes
0answers
9 views

debugging performance firefox (waterfall)

I'm trying to figure out why my page takes quite a while to load. From the console in Firefox i noticed there is a major event handler that takes up most the ms, but I'm having a hard time figuring ...
1
vote
5answers
45 views

AngularJS: Service not returning data

I have been trying to get data from a json file through service in AngularJS(1.5.3). I am unable to retrieve the data from json and display it in the view. I get blank values instead. Below is the ...
0
votes
0answers
8 views

ngAnimation, ui-router, and ui-views within ui-views doesn't seem to work

In my index file I have: ... <div ui-view="mdd" /> ... The template inserted into this view is of the form: ... <div ui-view="sidebar" /> <div ui-view="main" /> ... And the ...
0
votes
0answers
13 views

angular ui-bootstrap popover template content and close button

Using ui-bootstrap I can use a custom template for popover and thats cool however there are couple of issues I'm facing. 1- close button I can use popover-is-open to open and close however then I ...
-3
votes
1answer
28 views

Events from AngularJS to Javascript

How can I broadcast event from AngularJS and listen this event in basic JS script. Thank you
0
votes
0answers
16 views

flask and csrf token

I have started with python-flask and angular and I have used this snippet to handle csrf. With an ajax call it's always giving me 403 error. I'm not getting, what I'm doing wrong here. I have gone ...
0
votes
2answers
25 views

Start date End date validation in angularjs submit form should be disabled

I dont wana submit my form if Start date-End date validation fails...In my form if i have this... <form name="scheduleForm" id="scheduleForm" class="form-vertical" novalidate> <input ...
0
votes
0answers
11 views

Use $cacheFactory in Angular controller

This is a basic syntax question, however I can't for the life of me figure it. I'm trying to use the $cachFactory in my Angular controller, however this is the error I'm getting: require.js:166 ...
0
votes
1answer
14 views

How to put placeholder datetime-local

I try to give default value to datetime-local. I try this code: <input type="datetime-local" ng-model="event.startdate" value="2016-10-09T15:38:00"> But it doesn't work. Can you help me ...
1
vote
0answers
31 views

Can I use two views for same controller?

I have in development a simple app that use the same controller in two different directive that load the same template like this: <div ng-controller="IrChartCtrl as vm" class="ir-container" ...
0
votes
0answers
8 views

Google Maps Places Library - Info-window

I'm using the Places Library inside Google Maps Javascript API. Is it possible to get access to the data inside the map which was not plotted by my search using the places API? An info window can be ...
0
votes
1answer
34 views

How to filter a select list in Angular JS?

I see a couple of other questions like this, but their answers aren't working for me. I have the code below which is displaying data in a table using AngularJS. I want to filter the query to only ...
0
votes
2answers
25 views

Using (click) event in one html template to control [hidden] element in a separate template Angular 2

I have 2 TypeScript files, both with HTML templates in the @Component. Let's say one template displays info cards that can be collapsed or expanded with [hidden]="collapsed". This function exists in ...
0
votes
1answer
25 views

Images from json data

I have following json data from a web api: [{"FileName":"D:\\StuckUpTask\\Insta\\Insta\\Images\\/download (1).jpg"},{"FileName":"D:\\StuckUpTask\\Insta\\Insta\\Images\\/download ...
0
votes
2answers
17 views

Getting error while trying to display validation message using Angular.js

i am getting the following error while trying to display the validation message using Angular.js. Error: angularjs.js:107 Error: [$parse:syntax] ...
0
votes
2answers
20 views

routing with parameters not working in angularjs

Having issue while routing common.js when('/showmessage/:groupkey/:groupmessage', { templateUrl: 'templates/groups/showmessage.html', controller: 'GroupsController' }). ...