Questions tagged [angularjs]

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.

35 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
2answers
2k views

Linking service and factory functions to controller $scopes in AngularJS

I'm trying to keep my controllers as thin as possible, so I keep my domain logic in services and factories. When I need to call a function in response to a user action like a click I assign the ...
3
votes
0answers
68 views

How to wireup the Edit Functionality of a Entity and make REST API when it contains Dropdown Values

I am having a scenario wherein we have a Product Entity or a Front End Module which can be Added, Edited and Deleted. Now Product ( when added or edited) can contain a Dropdown called as ...
3
votes
0answers
834 views

Securing a REST API based on authentication with external site

I have a website with an already-established authentication system. Once a user logs on to it, one of the features is a statistics application based on AngularJS. The app communicates with an ...
3
votes
0answers
1k views

Analysis of ways to control/refresh a directive with isolated scope from parent controller

I'm asking this question because there doesn't seem to be a "recommended" approach for this. If a page had a directive with isolated scope, and if the directive needs to update itself after an event ...
3
votes
0answers
320 views

Best way to traverse data and update nodes in Mongo DB

I am using Angular Tree View in my web app. Data coming from the server is build with https://www.npmjs.com/package/mongoose-materialized getArrayTree() function. What I need is, syncing the ...
3
votes
1answer
926 views

Separating AngularJs and Django into individual Apps?

I am building a web application using AngularJs and our web server is built in Python Django Rest Framework. I would like to have the two projects separated and not coupled. In my current setup the ...
3
votes
1answer
452 views

How can I structure my angular app so that I don't end up with one huge controller and view?

I have an angular app that concentrates most of its functionality around a primary entity that has several satellite entities. The UI for this is effectively one screen, with a few tabs, one for each ...
3
votes
0answers
483 views

Reducing code complexity for an interface between angular and d3

I'm playing around with different ways of integrating d3 and angular, in the context of learning both of these frameworks, and am hoping for some input: My client application receives a JSON array ...
1
vote
0answers
70 views

How are changes populated to FrontEnd in Microservices Event First scenario?

I've been reading recently about Event First approach to microservices where Event Store is a Single Source of Truth for all the applications (https://dzone.com/articles/data-consistency-in-...
1
vote
0answers
67 views

Best way to handle access to web dashboard displayed on "dumb" screen

My web application has a dashboard page written in angularjs that is intended to be displayed on a screen in a room as a way of monitoring the information therein. It's a dumb screen connected up to ...
1
vote
0answers
362 views

Is this flux design for angular good?

I am currently on an angular 1.x project, and we are about to add user interactions that will cause data changes. We already identified some flows in our app that seem like flux might resolve, so we ...
1
vote
0answers
627 views

How to design the state tree using redux?

In the last days I have searched for a documenation on how and when is it best to use redux and how to design the state tree. My research ended in the conclution that there is no one currect answer. ...
1
vote
0answers
987 views

In what situation will AngularJS caching the DOM element be useful when using ngRepeat?

I think one of the things a developer faces when using ngRepeat, is that the when the i has the same value in an array, as in ng-repeat="i in myCtrl.arr", then: angular.js:13236 Error: [ngRepeat:...
1
vote
1answer
1k views

Displaying complex objects in AngularJS

What's the best way to display complex objects in AngularJS in your opinion? You have some data from a service used in multiple places in an app. You need to display multiple properties, each with a ...
1
vote
0answers
2k views

Multi-page application using angularjs

I want to create a multi-page application using angularjs, because i want to make use of a lot of angularjs functionality, like two way binding, form validation, AJAX handling, etc. But I read from ...
1
vote
0answers
556 views

SPA with RESTful backend

I'm building an app based on ng-seed which is angular setup with routing out of the box. I'm backing the app with a rest interface of which I aim for Richardson level 3 compliance. Often it seems ...
1
vote
0answers
281 views

Is one of these the more "Angular" way of communicating with a directive?

I am working on a project where I would like to encapsulate a directive library and distribute it to other developers to use. I would like to keep the changes to the model within this encapsulated ...
1
vote
0answers
880 views

AngularJS directive architecture: Where to put parameters?

I'm using a charts-Plugin (Morris.js) in my AngularJS application. I'm building a directive for each type of chart. The plugin is called like this: new Morris.Line({ // ID of the element in which ...
1
vote
0answers
803 views

scaffolding a multi-angular-app portal with usersystem

I'm trying to find the best way of developing a portal that a user can log in to and then be presented with a range of different apps (angular). They should share the same api-backend. I think that ...
1
vote
1answer
1k views

How does AngularJS manage scope in ng-repeats?

I have a table that has around 60 rows and 20 columns. Each cell has a directive with an isolated scope. I use 2 nested ng-repeats to generate the table (one for rows and one for columns), but I'm ...
0
votes
0answers
137 views

How to make my E2E tests verify results of an action?

I'm working on a project with an AngularJS app that talks to a RESTful API. We've just started writing E2E tests for the app in Protractor. I'm fairly comfortable with unit testing but new to end-to-...
0
votes
0answers
191 views

Socket.io takes time to load up, what to do while the page is connecting...?

For a real-time forum app I'm working on currently. It takes about 1-5 seconds for the sockets on my node.js server to connect and deliver the first payload, which is some database results from mongo....
0
votes
0answers
104 views

AngularJS: cost of deep watching infrequently changed object trees

I am working on a complex widget with a "preferences" object tree with 50-100 objects and 3-5 properties in each object. Each property is watched by Angular and controls how some aspects of the data ...
0
votes
0answers
259 views

Is passing controllers to another controller a good practice in AngularJS?

I have a register page that uses text inputs as well as an avatar input. There's another part in the website where the avatar input is also used, but it's used alone this time. So I'd like to make it ...
0
votes
0answers
58 views

HTML Encoding - XSS protection

My general rule for web development is that the server encodes HTML tags in any user-generated input when it is first submitted to prevent XSS. However recently someone suggested that instead of ...
0
votes
0answers
193 views

How to handle karma/bower in a Symfony Bundle on github?

i am working on a Symfony Bundle that uses angular among other javascript deps. Now i want to unit-test my javascript code and i want to ship those tests as well. My initial idea was to add bower....
0
votes
1answer
2k views

AngularJS and NodeJS required version

I am new to the world of Javascript and their frameworks, and I feel a bit lost with this. I am trying to follow the official toutorial of AngularJS. In one of the first sections, it reads Install ...
0
votes
1answer
219 views

Does Angular2 or Angular4 offer an app state and middleware promise like React / Redux?

I used Angular 1 and React / Redux, and one thing I like about React / Redux is that there is a definite app state, and a middleware that can convert a promise into real data. In Angular 1, we often ...
0
votes
2answers
964 views

How to create data driven views in AngularJS?

I am building a support web front-end for our team from where we can perform various support functions for a number of different sites at which our products run. This typically involves running some ...
-1
votes
1answer
329 views

I'm building an app with Node, Express, and MongoDB. Is AngularJS necessary?

Node, Express, and MongoDB are really connected so I can understand why they are frequently used together. For a web app of medium complexity, can I get away with only using HTML/CSS and EJS for the ...
-1
votes
1answer
316 views

Strategy To Upgrade Frontend Javascript Code - Typescript or New Framework?

Here is my scenario. I would like advice on which path to follow, along with good reasons as to why. It would even be better if you could give an example based on experience of a similar decision but ...
-1
votes
1answer
439 views

How to connect mean.js to AWS S3

I am trying see how I can upload images and file to aws S3 via the mean.js framework. I am not sure how the backend is linked to S3. There are no resources online about this specific framework and ...
-1
votes
2answers
837 views

Angular JS vs Modern MVC frameworks

I might be wrong for some things here, but here is what I recently though about. Modern frameworks MVC such as ASP.NET MVC 5, CakePHP, Java Spring etc. has their logic clearly separated into Models ...
-2
votes
1answer
40 views

Does Angular (or other frontend framework with auto UI update) break Single Source Of Truth since using function within template should be avoid?

I know when building an Angular app (or other frontend framework with auto UI update by change detection), using function in a template is not recommended since it will result in the function being ...
-2
votes
1answer
52 views

Can a JavaScript SPA launch executables installed on the server?

Context We have an application that is written in .NET and runs on a Citrix server. This app consists of shortcuts to external tools (like: DameWare, VNC viewer, mtsc.exe, msra.nexe, ...) that are ...