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
2
answers
804
views
In a JavaScript method signature what is meant by a return type of `typeof blahBlahBlah`?
I've seen an API list methods with both of the following signatures:
methodA(...) : ReturnType
methodB(...) : typeof ReturnType
I understand the first but not the second.
My question comes ...
2
votes
1
answer
6k
views
Populate User info between services on microservices architecture
I'm working on a microservices architecture which contains a couple a REST API as a services and a SPA as an interface. In addition, there are an "special" (is not speacial at all, it just special ...
2
votes
1
answer
516
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
votes
2
answers
1k
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 ...
2
votes
2
answers
650
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 ...
4
votes
1
answer
1k
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
1
answer
895
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 ...
0
votes
1
answer
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 ...
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
2
answers
2k
views
Best practice for storing external text to then place in html
Sorry if I'm not explaining the question well in the title, I'm not sure of the correct lingo. Let me give you an example instead.
So this is a normal HTML file.
<span>Welcome to the site!</...
3
votes
2
answers
317
views
Is it a good idea to have separate UI components make their own webservice calls?
I have few UI components in an angularjs web-application. Each display data based upon same input. One shows stats which are calculated on the basis of a time period. Other shows a chart of daily ...
1
vote
4
answers
492
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'...
-1
votes
1
answer
354
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 ...
7
votes
4
answers
2k
views
Clean, Modular Code vs MV* Frameworks [closed]
I've been hearing a lot about the "new" MV* frameworks. I've tinkered with KnockoutJS (I created an invoicing application), but I much prefer to write clean, modular code in raw JavaScript - ...
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 ...
5
votes
2
answers
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 ...
1
vote
0
answers
667
views
How to design the state tree using redux?
In the last days I have searched for a documentation on how and when is it best to use redux and how to design the state tree.
My research ended in the conclusion that there is no one correct answer.
...
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 ...
-2
votes
1
answer
59
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
58
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
81
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
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 ...
-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 ...
3
votes
2
answers
4k
views
What is a good method of storing test data for development and unit testing with angularjs and jasmine?
What is a good method of storing JSON data/objects for development and unit testing with angular and jasmine?
I have seen some ways of accomplishing this. However, since I am new to unit testing with ...
8
votes
3
answers
636
views
Angular View Model Validation
The view model seems to be the most appropriate place to perform validation yet Angular seems to be pushing me down the popular form validation route.
Why Model Validation?
DRY - Applying validation ...
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-...
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
2
answers
295
views
Web App Authentication's Architecture Related Query
I have a web app that makes use of node.js in the backend and angulajs on the front end.
Let's say I have a user who has the ability to login via multiple systems; I must allow multiple logins.
I ...
-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 ...
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 ...
11
votes
2
answers
985
views
angularJS code sharing across hybrid Ionic app and regular mobile website
Ok, so in our 'innovation lab', there is currently a push to use Ionic, an hybrid app framework built on top of Cordova for native access and angularJS for the ‘web code’.
There are also some ...
3
votes
2
answers
803
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 ...
5
votes
1
answer
872
views
Different type of MEAN Stack Architectures
I am reading a book (Getting MEAN by Simon Holmes) about MEAN Stack which talks about different architectures that can be used while developing an app in MEAN Stack and I got a little confused with ...
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 ...
16
votes
4
answers
16k
views
Where to put the Angular app in a ASP.NET Web API solution?
I'm starting a greenfield app and I want to use ASP.NET (4.6) and Angular 2. For the backend I have created a project in Visual Studio, and now I'm wondering where to put the Angular app. I really ...
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 ...
6
votes
1
answer
1k
views
Functional programming pattern for async JavaScript code
I have adopted a pattern in one of my projects that I really like and I suspect it's likely to be something standard. I'd like to describe it here and see if you guys can tell me how other ...
-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 ...
59
votes
4
answers
74k
views
Should I be using both AngularJS and ASP.NET MVC?
I started learning AngularJS and ASP.NET MVC, but am not sure why to use them both together in the same project?
Aren't they both MVC frameworks? Should I be using them both in the same application? ...
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 ...
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
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, ...
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 ...
0
votes
2
answers
95
views
Where should my service do it's data fetch?
I have an angular service that fetches data that will be used by multiple controllers. I only want to fetch the data from the db once and then have the service store the data in an object which ...
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 ...