Skip to content
Advertisement

Tag: angular

ERROR TypeError: Cannot read property ‘salt’ of null

I am having troubles trying to encrypt and decrypt the values of local and session storage. Thank you for your time and your help. I need to encrypt the values of local and session storage, and decrypt when it’s necessary. I do not know where it’s the failure. Which one it’s the easiest way to achieve the encryption? Answer The

Angular set slide in panel with routing

Stackblitz demo: https://stackblitz.com/edit/angular-ivy-tf3pip?file=src%2Fapp%2Fapp.component.html I’m trying to set this slide-in panel with routing in Angular 2+, this code works fine in a flat html but i need to trigger the panel with Angular routing, so if i go to the route: ‘slideinpanel’ the panel should open. What i’ve been trying is to trigger the panel when the slideinpanel component is loaded.

Issue with mouseenter mouseleave with PrimeNG DynamicDialog

I’m having a problem with implementing a dynamic dialog that is to appear on mouseenter of an element and disappear on mouseleave. I’m using PrimeNG’s dynamic dialog which has a modal overlay and this causes an issue where mouseleave is immediately triggered when the overlay appears causing the dialog to disappear straight away and then come back on the mouseenter;

Search in Array of objects on multiple values

I have array of objects: I have a search bar on top and want to search for any matching string from any key which I provide. For example: I want to search from caseNumber, patientName & reader so I will call my filter function as filter(allCases, caseNumber, patientName, reader) I tried using Angular pipers but it is just working for

Angular pick up an item within an array

I’m using angular to manipulate a tmdb api, but I’m having trouble getting an item that is inside an array, could you help me? the answer that the array returns to me is this: And I want to get the “key” item. The idea is to get the key and then concatenate it with the youtube link to redirect to

Angular nativeElement offsetTop alway 0

Im working in a menu where the current section is gonna be select it on scroll, but when i try to get the offsetTop of the elements i get alway 0 for some reason, on the parentElement a get value for offsetTop but in this case does not work for me using the offsetTop of the parentElement because i have

Advertisement