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.
203 questions
2
votes
1
answer
515
views
Unit testing a Web Worker in JavaScript/TypeScript - Best Practice
I got assigned with writing unit tests for a class that instantiate a Worker inside in it's constructor. The code looks simmilar to this,
class SomeClass {
private _worker: Worker;
constructor(...
-2
votes
1
answer
58
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 ...
0
votes
2
answers
80
views
Strategy for Chrome timing out on a Database cleanup job which takes a long time
I have a notifications app which sends users notifications. It uses a .NET core backend, an angular frontend and Cosmos DB. Within this I have an API endpoint function which is linked to a button used ...
-1
votes
2
answers
406
views
Achieving server-side rendering of data coming from a PHP API
I have been working on a blog application with Codeigniter 3.1.8 and AngularJS v1.7.8. It is intended to be versatile and easy to use.
The Dashboard of the application is "pure" Codeigniter, ...
1
vote
1
answer
2k
views
Node and Angular two separate applications or a single application?
I am a java developer. Since one of our developers are leaving I was handed over a project he was maintaining. He says it is a node + angular js project. But as per my understanding, backend should be ...
1
vote
0
answers
162
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-...
0
votes
1
answer
3k
views
Angular header/footer, Component or Module
I have been learning angular for a while now and I understand the point of modules and components (briefly) but now I am starting my own project using the framework I am somewhat confused. When should ...
5
votes
1
answer
753
views
IEC 62304, Are Software Frameworks (Spring/JEE/Angular/React) considered SOUP?
Im working on the implementation of an IEC 62304 compliant development process in our company and I have a question considering SOUP (Software of unknown Provenance).
Our goal is the develop a web ...
-3
votes
2
answers
2k
views
Is it better choice to use both AngularJS and ASP.Net MVC for developing ecommerce website?
I know about MVC, But I don't have such experience with AngularJS. But both has controller and View.
To develope like e-commerce site, is it good choice to choose AngularJS to do filtering with ...
1
vote
1
answer
752
views
How to architect a very big web application using server and / or client rendering?
I recently finished a project which contains more than 30 different pages/features. Each one with some CRUD and more subpages. Each page is totally different from another in purpose. All of it was ...
0
votes
1
answer
202
views
For what reasons would you use AngularJS expression (&) binding instead of using events?
Like the title asks, for what reasons would you use the ampersand binding in AngularJS instead of utilizing an event system--especially in a case where your application already uses events for some ...
3
votes
2
answers
800
views
What is the right time to go for Code Refactoring, not optimization?
I've been working on a Python(Django)/JavaScript(AngularJS) based application for some time now.(I learnt all of these on the way, had previously been a Java only programmer)and have hit moments where ...
1
vote
2
answers
1k
views
Stateful Single Page Application with ASP.NET Core
I'm building a simple shopping cart using Angular and ASP.NET Core with. There is no login require and user can always checkout and make payment as a guest. The front end would be built with Angular, ...
11
votes
4
answers
18k
views
Better ways than traditional polling methods
I'm currently in a AngularJS/Javascript environment.
Currently the application using the polling method (i.e, to retrieve new data from server in a fixed amount of seconds).
This is quite taxing ...
0
votes
1
answer
305
views
AngularJS - is there a good reason why unit testing of angularJS controller should still be written alongside with e2e tests?
Given the official tutorial of angularJS,
https://docs.angularjs.org/tutorial/step_07#testing
It is apparent that it only tests the controller's states (e.g. its model) when events happen (e.g. ...
0
votes
1
answer
258
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
1
answer
727
views
What are architectural approaches for converting large multipage apps to use new JavaScript frameworks?
We have many siloed legacy multipage applications. For example, a personal information collection application may contain four or five HTML4 form based applications. The backend is based on Spring ...
2
votes
1
answer
299
views
Automatically update and test npm dependencies
I would like to automate the following sequence of events;
A new version of Angular is released on Github
'Something' triggers causing all our angular applications to update their npm dependencies for ...
-2
votes
3
answers
904
views
what is better way to architecture project
I am pretty new to angular.js world. I wanted to know best architecture for my solution. I have 4 projects in my solution. First is angular.js app solution which has below structure. Is this correct ...
2
votes
1
answer
399
views
Angular and desktop
I'm reading about Angular on their website here: https://angular.io/features.html, and I see the following:
Cross Platform
Progressive web apps - Use modern web platform capabilities to ...
1
vote
0
answers
76
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 ...
0
votes
1
answer
977
views
How should I prepare my SVG for production? [closed]
I have a project in Angular1.x using a lot of SVG files.
I have no idea what to do to SVG files to prepare them for production.
I don't want my page to invoke 50 calls to different SVG files. So ...
7
votes
2
answers
11k
views
RESTful API communication between multiple web servers
I'm trying to understand RESTful communication, but I still have a few doubts.
I have a main web application (on the right side of the Architecture) made in AngularJS, which shows data coming from ...
2
votes
1
answer
1k
views
Understanding webpack and other module loaders
I am a bit confused regarding module loaders Like I am using webpack which load modules as chunks but it is only while developing When the code gets minified it will be a single file for all scripts ...
0
votes
2
answers
191
views
AngularJS controller definition
I'm beginning using AngularJS (v1) framework, and after browsing good practices I found those examples (from this page https://github.com/johnpapa/angular-styleguide/tree/master/a1), like :
/* ...