Questions tagged [angular2]
The angular2 tag has no summary.
55 questions
-2
votes
1
answer
653
views
I have a SPA using Azure AD Auth Code with PKCE flow and I'm trying to implement token exchange/on-behalf-of flow
I have an angular SPA that runs in an office add-in (word) that I need to authenticate against Azure AD using Oauth2, consume resources from multiple apis and make graph calls. I have been successful ...
0
votes
1
answer
339
views
Sending multiple calls from angular application
I am working in Angular project which is connected to REST API. Here we have an endpoint to create and update room types. POST endpoint for create and PUT endpoint for update exiting room types.
Both ...
1
vote
0
answers
54
views
Inheritance on nested components
I am creating a grid using ag-grid. Here I want to create custom dynamic cell editors. Which show different edit fields based on the value inside the cell. I got the idea from here.
This question is ...
0
votes
1
answer
96
views
A RESTful API for internal company system accessing peripheral devices
I am currently working on an internal storehouse management system for a certain company.
They wanted it to be a web app so that they can use it without installation on any devices.
We decided to ...
-1
votes
1
answer
147
views
How to prevent angular 2 client from accessing privileged fields
I'm learning angular and have been reading about various backend solutions like direct db access, REST, and graphql. One thing I haven't seen addressed anywhere yet is how do you protect privileged ...
-2
votes
1
answer
263
views
Supervisor wants unconventional web site, how to resolve this
I started a new job with a greenfield site in Angular to create a website from an old desktop app. I gave a presentation guided by my Supervisor who wants game style top icon menus to cut down on ...
2
votes
0
answers
4k
views
Angular 7 - Nav Child component display router-outlet vs iframe
I have created a Angular 7 web app data-driven display of navigation items and content to be shown when a nav item is selected.
I have the following nav item interface:
interface NavItem {
title: ...
4
votes
1
answer
3k
views
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 ...
1
vote
2
answers
607
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
1
answer
144
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 ...
3
votes
2
answers
150
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
2
answers
447
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<...
0
votes
0
answers
79
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 ...
-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 ...
0
votes
0
answers
62
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 ...
3
votes
1
answer
636
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 ...
2
votes
1
answer
3k
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 ...
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
2
answers
3k
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
1
answer
2k
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 ...
7
votes
6
answers
893
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-...
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
319
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 ...
18
votes
3
answers
11k
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'...
1
vote
0
answers
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:
...