Azure Redirect from www to non-www in Angular and .Net Core API

I am new to Azure, but I am taking a course. However, I need to know how to set something up now. I have an Angular 12 frontend and a .NET Core 5.0 API hosted on Azure (Linux). I want all www urls (https and non-https) to be redirected to https://example.com. I do not have […]

By Tom
Published
Categorized as .net-core, angular, azure, linux Tagged , , ,

Angular-Filemanager Java Bridge Missing GET implementation

About the angular-filemanager (https://github.com/joni2back/angular-filemanager), java bridge implemented in a servlet… is the GET missing its handling of the action string? It would seem that the initial listing of the root directory will ceom from a GET request. But the only call to actuall list thej files and folders in the root folder comes from the […]

By Tom
Published
Categorized as angularjs, file-manager, html, java, javascript Tagged , , , ,

Unsubscribe from a observable when condition is true in angular

I’m trying close a popup after 5 seconds when it is loaded but the subscription finish before so i want to unsubscribe when the variable loaded is true this.closed = false; this.loaded$.subscribe(loaded => { if (loaded) { setTimeout(() => { this.modalService.dismissActiveModal(); }, 5000); } }).unsubscribe(); } Source: Angular Questions

FormArray element getting removed incorrectly in angular reactive forms

I am trying to remove an empty element from formArray and the code perfectly works fine when removing a just one instance. However if I try to store in array and then remove, it removes all the element irrepective of its empty. The storing of number into the array is commented below. Any idea whats […]

By Tom
Published
Categorized as angular, angular-reactive-forms Tagged ,

remove formarray element reactive forms angular

I am trying to remove an array element from an formArray in angular reactive form as i dont want to display empty array element. I need to remove the element whose all controls contain null value or false. I dont want to remove the element even if any of its control contains a value other […]

By Tom
Published
Categorized as angular, angular-reactive-forms Tagged ,

Angular runtime error with angular element

I have an angular (12.x) element that I have been using for a few months with a Chrome Extension. This component was part of the content script. I recently upgraded my extension to support manifest 3. I started getting an error when I created the component using a standard element create method. const el = […]

white color appearing on either side for selected and hovering item in mat-select

I have implemented a mat-select from material package in my angular application and trying to set selected item and item that i am hovering in way that the background is completely black and selection does not span the entire width,. In doing so I am getting a white space. Could somebody tell me what would […]

By Tom
Published
Categorized as angular-material, css Tagged ,

need to sort, filter and set default value using rxjs

I have an observable in angular application which is bound to the reactive forms dropdown control. I basically need to filter, sort and also show the default value. I have written two implementations where the the first one does the filtering and sorting but not the default value while the latter does the default value […]

By Tom
Published
Categorized as angular, angular-reactive-forms Tagged ,

Default value not highlighted in material select control in angular application

I have implemented a material mat-select dropdown in my angular reactive application and want to highlight the default item. I am able to display a checkmark to show the default item using css but not able to highlight it as selected value (The blue bar). I am assigning the isDefault value to true but it […]

By Tom
Published
Categorized as angular, angular-material Tagged ,

angular test not checking the actual value emitted by observable

I am unit testing an observable and checking if it contains a ? element. The source data is as follows. Though both the expects run without error I am not convinced with the expect that checks for ? mark. Wouldn’t I need to check for the complete element { name: ‘?’, isAlive: false }, When […]

By Tom
Published
Categorized as angular, jasmine Tagged ,

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq