Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [angular2]

The tag has no usage guidance.

-2
votes
0answers
9 views

Pattern for unsubscribing from RxJS subscriptions

I was reading Ben Lesh's article here: https://medium.com/@benlesh/rxjs-dont-unsubscribe-6753ed4fda87 I am wondering - is the following pattern sufficient? https://gist.github.com/ORESoftware/...
1
vote
1answer
58 views

Calling executables from an ASP.NET WebAPI

I have an Angular application with a table, and I'm considering having the console application take the name of C# programs that the user can run. I was thinking of passing the name or code of the ...
0
votes
1answer
53 views

Angular 7 - Injecting a State/Context Snapshot

Requirement There is some (for arguments sake) “global” application state that I am interested in injecting into components. Each candidate component should receive an immutable snapshot of the ...
0
votes
0answers
21 views

Design for constantly “saving” user data in the event they navigate away from the page

We are in the process of converting a desktop application to a web application, and one of the challenges we are facing is the fact that when you make a change to the desktop application, it regularly ...
0
votes
0answers
26 views

Angular2+ - is service2 still costing resources if I use it in service1's constructor but never really use it?

I have a notification service with a logger service in the constrctor. I want to use the logging service to send POST request to backend with some data ONLY when errors occured. Inside this logger ...
1
vote
1answer
53 views

Angular SPA, using server-side-rendering to support IE11? Is this risky or a smart way to go?

I'm working on a dozen enterprise SPA's and PWA's and most of them require impeccable IE11 support. This has been a complete pain with countless problems every step of the way. It occured to me ...
0
votes
1answer
90 views

Example case of when using ASP.Net w/Angular vs just HTML and Angular would allow provide capabilities the other cant

So I'm trying to justify my case of using ASP.Net Core with Angular in a new application, where the .NET application does little more that provide the basis for the Angular app. It's really similar ...
10
votes
1answer
263 views

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 ...
3
votes
2answers
62 views

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 ...
1
vote
0answers
38 views

Separate UI applications vs single with logic for showing/hiding functionality

Currently my company has a single internal application that our support agents use. It only supports one product at this time. Tech stack is angular on the front end and spring micro services for ...
1
vote
1answer
54 views

What's a clean way to manage state in Angular and have components update?

I'm using a service to manage state in Angular: import { Injectable } from '@angular/core'; import { Subject } from 'rxjs'; @Injectable() export class DrawingAreaService { itemChange: Subject<...
-3
votes
1answer
2k views

How can I do to use Angular 5/6 for frontend and Codeigniter 3 for backend in the same web app?

I have this project I want to do, using Angular 5/6 for frontend and Codeigniter 3 for backend. The problem is that I don't know how to combine the two, and all the tutorials I looked were using ...
0
votes
0answers
55 views

Do database CRUD operations dictate whether and application should be one-way or two-way binding?

I am confused (easily done). To me model is the data from the database sent back as JSON. When I think of that in an Angular context, when two-way binding is configured, it makes me think the ...
-1
votes
1answer
837 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
1answer
250 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 ...
-1
votes
2answers
2k views

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 ...
0
votes
0answers
34 views

Keeping templates on server - Angular 2+ SPA with ASP.Net WebAPI

We are planning to build a SPA in Angular 2+, which will use ASP.NET as a back-end. Since Angular doesn't really have a good integration to ASP.NET, we decided to create the SPA as a standalone ...
1
vote
0answers
76 views

How to synchronise application state with router state in Angular 2

Is there a best practice approach in Angular2+ for making the URL the single source of truth for application state. EmberJs has Route Models, each segment of the URL can have a model and each URL ...
3
votes
0answers
302 views

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 ...
1
vote
1answer
60 views

Architecture approach for developing a XML generator application

I am working to on an application which generates XML based on user input. Currently the application is in Design phase. And I am really confused on how to progress on this. Well the Idea is that: ...
0
votes
1answer
827 views

Is it a good practice to log client side errors to a file

I basically want to know if it is considered a good practice to persist the errors that happen on the client side of a web application (typescript/angular for example) by logging them to files? Or if ...
0
votes
0answers
26 views

Front end application design, split Auth and Account to diffrent modules

I'm currently a part of a team that rewrites an entire application using Angular5, RXjS and state management. our biggest struggle at the moment is to figure out if we should split the Account and the ...
0
votes
1answer
191 views

X.509 authentication for microservices with JavaEE [closed]

I am trying to design an app that is based on microservice architecture. Backend is written in JavaEE (micro profile, not Spring Boot), while for front-end I would use Angular5. Now I am wondering ...
2
votes
1answer
89 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
1answer
302 views

Angular template variable reference

Here is a weird problem in Angular: <input #pin1 type="password"> <p>You entered: {{pin1.value}}</p> If you type something in <input>, the <p>'s content will not change ...
1
vote
0answers
502 views

What is the “recommended” way of using Asp.Net core, Angular, and OpenID-Connect

I mainly just want a lead in a direction with this. I'm not asking about specific frameworks to use, even if I mention them, just how it's supposed to work. I am trying to get an understand of how ...
0
votes
2answers
434 views

Communicate between browser and client application on localhost

I'm currently developing a Website that requires direct access to the client computer. Therefore I decided to split this project in this three main parts. There are some requirements that have to ...
1
vote
1answer
193 views

open webapplication from desktop application

Doctor is end user of this application Doctor opens desktop application on his pc which is not developed by us. We provide interface to desktop application via interop dll's. Desktop application call ...
1
vote
1answer
1k views

Proper Version Control Angular 2 Project

Hoping to get some guidance regarding version control of Angular2 project. Recently i started coding in Angular2, used angular-cli to create a brand new project and go through standard 5 minute setup ...
1
vote
1answer
1k views

Angular2: Service architecture + error handling

I need support for Angular2 service architectures. I am quite familiar with Angular2 but I don't see the best way to implement services, error handling and their connection with the components. I'm ...
8
votes
6answers
544 views

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-...
-5
votes
1answer
114 views

Use Angular2 for website and API for mobile application with single Web API project

We are working on a project to develop a solution with a large number of modules in which the client wants a website as well as mobile application. As a team we're working using ASP.NET MVC and Web ...
0
votes
1answer
451 views

How to modularize Angular 2 application - share components, services, models among multiple pages?

I am developing Angular 2 payroll application intended for serveral user groups/roles - e.g. for accountants, for employee self-service, for managers. Each user group should have completely different ...
0
votes
1answer
199 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 ...
3
votes
1answer
181 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'...
0
votes
1answer
255 views

Why does Angular 2 recommend using Services to make HTTP calls

In Angular 2's official tutorial, any operation involving getting or saving a class necessitates using a service. For a Hero class, they had to create a HeroService to perform all HTTP calls. This ...
3
votes
0answers
93 views

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 ...
9
votes
2answers
3k views

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'...
3
votes
0answers
76 views

Proxying REST Backends

I have several backends services (REST+SOAP) that have to be consumed by an SPA (Single Page Angular2 App). As JWT (JSON Web Token) is not feasible for me for the moment, security is done using CAS ...
1
vote
0answers
1k views

Modularizing level of Angular 2 application

my question is related with Angular 2 Modules (@NgModule). Previously I’ve worked with angular 1.5.8 on huge business application and I’ve got used to Angular 1.x practices. Important background: ...
1
vote
1answer
267 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
1answer
295 views

Angular 2: component reusability and setup of testing module

I am currently initiating myself to the latest RC of Angular 2, coupled with typescript. So far, I really love it, but I however already stumbled upon a few existential concerns. The @Component ...
0
votes
1answer
302 views

Angular2 is based on the Angular-CLI, correct?

Angular2 is based on the Angular-CLI, correct? So When I run ng serve there is a machine spun up at localhost:4200. Now if I want to add a database, a lot of people end up packaging Node.JS along and ...
3
votes
1answer
218 views

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 ...
1
vote
1answer
688 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 ...