Category "angular"

how to lazy load the children view by default?

I'm trying to make the view dynamic when using the loadchildren() property For example, I've got 3 components app.html : Hello App <router-outlet></ro

Ionic 3 pause and resume events triggering multiple times in Android

I am facing strange issue in ionic 3 pause and resume events, whenever I paused the application, events are calling multiple times(once 2, once 3 etc). Here is

Angular component ng-content passing template with dynamic output placeholders

Is it possible to have a component that can handle dynamic projection like this? <my-component [date]="2022-03-22"> <p>This date falls on a <

Ngx-datatable set column width dynamically

I'm storing the column widths of my ngx-datatable inside a database. I get these values using an AJAX call. How can I set these values for the datatable? What

What's the best way to add localization-translation to angular mobile application, all languages? [closed]

What's the best way to add localization-translation to angular mobile application, all languages??

How do I publish a .NET Core + Angular single page app for different environments?

Some additional context: I created a solution using the Angular project template with ASP.NET Core in Visual Studio 2019. The app has several different environm

Content type 'text/plain;charset=UTF-8' not supported for post request in angular 4

I'm using post request with HttpClient like below, return this.httpclient.post<any>(url, body) .catch(this.handleError) then it gives me be

ASP.NET Core and Angular Deployment - page refresh gives 404 error

I am working on a project in Angular and ASP.NET Core hosted on Plesk. The project is working fine except the page refresh yields the 404 page not found error.

Filtering an observable array into another observable array (of another type) by an observable property of the items

As the title probably doesn't explain to well what I am doing, I'll give a small example: A REST api returns a list of objects. For each of them, a checkbox sh

Web App SPA & OIDC: How to properly authenticate before accessing the front?

I have a regular web app, composed as usual of a frontend SPA (angular) and a backend. The server calls are protected from unauthorized calls through authentica

Function DocumentReference.set() called with invalid data. Unsupported field value: a custom Budget object

Below code works fine until today. But I don't know now it is not working and gives below error.Could you tell me why? Error: Function DocumentReference.set

Using Google One Tap in Angular

I'd like to use Google One Tap in my Angular 11 app. Following the documentation I added <script async defer src="https://accounts.google.com/gsi/client">

Nginx config to serve an Angular app under an URI prefix where files are generated in the same folder as "index.html"

There are a lot of Angular/Nginx examples on the web but I'm still unable to make my config work. I use Angular 13. In angular.json: outputPath is "www" baseHre

IIS: Angular request causes 401 unauthorized error when calling Python Flask on another port on same server

I have a legacy Angular application and there's a snippet of code below that makes a call to a ASP page on the same server and port getTableData.getUser = funct

mat tab inside tab selected index not working

When tab inside tab then if selected index of sub tab is 1 then it should show as selected. Let parent tab has two tabs, it has selectedIndex is 0, and sub tab

mat tab inside tab selected index not working

When tab inside tab then if selected index of sub tab is 1 then it should show as selected. Let parent tab has two tabs, it has selectedIndex is 0, and sub tab

How to detect change from one component into other

Angular 4. Github source I have a menu which is filled by a web service. The web service is in taskService, but is not necessary now. ngOnInit() { this.

Angular Material datepicker does not return value when action button is in use

The problem is that when clicking today-button, it is working, but when changing the date in datepicker, nothing happens and this seems to be because action but

ANGULAR | Use two components with same route

I need to use this route '/', but this route must use a component which is selected after auth validation. I want to do what Facebook does. When you are about t

How can I cast an AbstractControl to a FormControl in a template?

I have a FormGroup that I'm passing from a parent component to a child, and then within that FormGroup there's a control that I'm passing from the first child t