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
514
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(...
1
vote
4
answers
490
views
Is it best practice to only use still-supported languages when developing apps?
I am looking to create a multi-page web app. I had begun the construction of this web app in angularJS when I realized this was no longer being supported. I am early enough in development that it isn'...
-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 ...
-2
votes
1
answer
56
views
Do I need a separate backend (Express) for an Angular project if using AWS for data storage?
So, I'm working on developing my first Angular project with/for a friend of mine and I have a design question before I really get started with things.
I'm going to be storing persistent data on AWS ...
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 ...
2
votes
1
answer
2k
views
Refresh tokens by example using Angular and Spring Boot
I am designing out an app that would have an Angular frontend and Spring Boot (Java) backend.
I was considering (but not married to) the prospect of JWT-based authentication:
User logs in with ...
-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, ...
-2
votes
1
answer
79
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 ...
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 ...
2
votes
1
answer
424
views
Implementing Business Logic in Architecture
I am currently making architecture for one application in which we have different types of user and every user has different types of functionalities to perform.
I am confuse in one point if i try to ...
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-...
3
votes
1
answer
1k
views
How do functional programming advocates use a framework like React or Angular?
I read this blog post recently:
The Two Pillars of JavaScript
Part 1: How to Escape the 7th Circle of Hell, which is essentially a criticism of object oriented programming, and advocacy for funtional ...
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 ...
-3
votes
1
answer
1k
views
Angular 5- Where should logout code sit?
I want to create Logout Functionality in Angular 5. The logout function will contain following pseudo code:
Clear local storage authentication JWT token
Redirect to login page
My question is; where ...
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 ...
-1
votes
1
answer
3k
views
Why was Google Maps built using canvas? If it was built today, would it have rather used react/angular? Why (not)? [closed]
Google Maps' frontend is almost completely dependent on canvas.
Given that it was initially developed a long time ago, is it still the best approach to take to build such a UI? If not, what is and ...
-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 ...
3
votes
1
answer
162
views
Why JS MVC frameworks prefer data binding to UI element reference?
When you are using frameworks like Angular, Angular2+, and React, the way you put data in the UI is by binding a property to an attribute of a UI element.
On the other hand, when you're doing ...
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 ...
2
votes
1
answer
5k
views
Django - separation from the frontend (Templates)
Long story short, let's assume I want to create a webpage that would enable the users to sell used cars.
I am a beginner to webdev, so pardon my ignorance. Fun fact: two months ago I knew literally ...
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 ...
0
votes
2
answers
480
views
Load JSON immediately for SPA instead of AJAX? (Python=>AngularJS)
I have access to a Response object in my python backend for returning HTML pages, etc. I can declare headers, content-type, etc.
Instead of re-engineering the Python to use something like Django/...
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
votes
2
answers
234
views
Front end engineering : Best way to implement a step by step check out cart
I have implemented a checkout cart like this :
Navigation rules are as follows :
User can move to next step only on completing the current step.
But he is free to click on the previous tab and edit ...
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, ...
1
vote
1
answer
249
views
Design Patterns for drawing a custom graph in a webapp
I am building a web application which is meant to help display prices of products. The web-app is centered around showing prices in a custom bar chart. I am thinking it should be composed of a Model ...
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
0
answers
213
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
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
3k
views
Single page app vs multi page application?
My experience has been using the hybrid approach per use case demand:
Where content on same page needs to be updated, we used AJAX/SPA approach
But when the page has a completely different layout/...
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 ...
2
votes
1
answer
870
views
Is it true that for both React or Angular, they are also both "convention over configuration"?
In the Ruby on Rails communication, it is often said that RoR is "convention over configuration".
Can you say for React / Redux / Flux and AngularJS, Angular2, they are also "convention over ...
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
240
views
Does AngularJS or Angular 2 provide something similar to the Redux middleware so that AJAX data appear immediately available?
I am learning React / Redux, and one feature I like is, when you fire off an Action, you actually provide a request as the "result" or what is called the payload in Redux, and the Redux middleware won'...
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 ...
4
votes
1
answer
990
views
Communication between Angular directives and their parent controller
I'm trying to provide a convention, or standard, for a parent controller to communicate with a directive in Angular.
Basically the directive will have a "settings" object containing callbacks and ...
-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 ...
-1
votes
1
answer
345
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 ...
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 ...
0
votes
1
answer
2k
views
Should client-side model contain foreign keys to extract data already on client
I'm currently building the front-end of an application using AngularJS. I don't have a whole lot of knowledge about the back-end, but some of the data I'm being served by the back-end developer is ...
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 ...
1
vote
0
answers
372
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 ...
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 ...
13
votes
1
answer
1k
views
Order and filter Server-Sent-Events in angular.js eventsource
I have a Client in AngularJS where I consume multiple SSE (Server-Sent-Events) in Java from the Server Side (there are multiple endpoints in different web servers in the backend). Diagram link
I ...
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
2
answers
741
views
Understanding Backend
I recently got into website development and am in the process of making my first website using Angular 2 right now. I already created websites in the past using basic HTML and PHP but that was nothing ...
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 ...
1
vote
1
answer
3k
views
Best way to rewrite an mvc application to an angular architecture
We have an mvc application that we would like to gradually move to an angular platform. It is a wizard style app with 6-8 pages.
We currently have a classic mvc layout. We would like to move to an ...
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 :
/* ...
-4
votes
2
answers
4k
views
What is best one between JSF and angular for java hibernate,spring,strut application?
I want to develop application using java frameworks(spring,hibernate,strut). This application has large complex operations.I want to know what is the best between JSF and angular? As well as i want ...