Questions tagged [angular2]
56 questions
19
votes
2 answers
Composing large Angular 2 app with multiple small apps within
After long 3 months of debate and research in choosing between React (with Redux) and Angular 2, front-end team in my company has concluded to go with Angular 2 (given that it is more suited for our problem).
We're into enterprise app business,…
Kushal
- 391
18
votes
3 answers
Where to put business logic if using Firebase?
I'm about to start developing a single page web application that is very simplified a multi user documentation system. The front end will probably use Angular2.
The project has a short deadline, so I've been looking for "shortcuts", i.e. using…
Magnus
- 415
- 1
- 3
- 10
14
votes
1 answer
Redundant code sent down the pipe with Micro-frontends
My understanding of Micro-frontends is that the key problem they solve is in helping enterprises have multiple, possible disparate teams, work on individual components/small-apps that will be used to compose a large web application.
Here the key…
Kiran
- 251
9
votes
2 answers
Proxying REST Backends
I have several backend services (REST+SOAP) that have to be consumed by a SPA (Single Page Angular2 App).
As JWT (JSON Web Token) is not feasible for me for the moment, security is done using CAS Central Authentication Service ( single sign-on…
Cris
- 323
7
votes
6 answers
Client side web development - dealing with authentication during development
We are beginning development of an Angular 2 application. Our back-end will be using ASP.NET Core WebAPI.
Although my subject calls out authentication, this also applies to any API service that is-but-kinda-isn't required for the client-side app to…
Jake Shakesworth
- 199
- 1
- 6
4
votes
1 answer
Split large Angular codebase to libraries
I am writing a potentially large web application using Angular 7, where I came across a design problem. My angular applications until now have been relatively small, so there was no problem keeping whole code in one project (divided in modules with…
Miha Jamsek
- 249
4
votes
3 answers
Making all angular services extend a single base service
In Typescript/Angular 6 (2+), is it considered a good practice to have a base abstract http service from which derives all the application services? for example:
//import the angular Http ...etc
export abstract class MyBaseService{
...
…
Uentee
- 401
4
votes
0 answers
Angular+RestAPI design: estimating backend load
I'd like to write an Angular2 application that consumes a REST API backend.
However I'm worried about the number of req/sec that such a request will generate, due to Angular "watches" or equivalent change detection algorithm
Should I limit from the…
Glasnhost
- 233
4
votes
1 answer
Joining table with table from external database/API
For a prototype project I've created an Angular 2 application with simple CRUD functionality using Auth0 to handle authentication with a back-end containing a Web API (core), Service and Repository project.
I've chosen to use an Auth0 database to…
Sam
- 171
3
votes
2 answers
Environment configuration vs domain detection
We are developing an angular 5 application that must run in different environments (dev, qa, int, uat, prod), and connect to different APIs depending on the environment. We have traditionally have only 4 environments and we have a environment file…
Jorge Riv
- 141
3
votes
1 answer
Microservices and Modular based front end
I'm a software developer, and the kind of developer we call "front end developer". I'm working on stuff like Angular JS, Angular 2 and others.
I wanted to know how we can organize our front end code so that we can fit a modular based microservices…
Ghazanfar Khan
- 139
- 2
3
votes
1 answer
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 standard iOS dev or traditional JS/JQuery dev, you…
Andy
- 187
2
votes
0 answers
Software design for an Angular highlight&comment tool
We're building a new feature for an online editor that the user will not edit the document, but will be able to highlight & propose edits on the document. Very similar to google documents' commenting feature, rather than a typical editor. The…
Bora
- 153
2
votes
1 answer
Angular Folder directory approach
I know the proper folder structure for an Angular application should be like this:
/app
/core module
/components
/services
/feature module
/components
/services
/models
/shared
/components
…
user282705
2
votes
1 answer
At what point is having a static class with utility methods better than having an injectable service?
I have a pretty general question about the design of Angular web applications. I'm a big fan of writing services. Sometimes I write services that have only utility methods that don't require state at all (think mathematical functions and the like).…
Joshua Schroijen
- 141
- 3