I am trying to select a few words from the textarea and create bootstrap chips. I am able to create the chips for selected words. I am trying to highlight the selected words with different background …
Tag: angular8
convert js into typescript into angular 8
Below code is working fine in javascript. But when i tried the same in Angular 8 I am getting lot of error const signUpButton = document.getElementById(‘signUp’); const signInButton = document….
Converting a complex timestamp to normal time in angular
I have a time stamp like 2021-03-12T14:55:35.454Z I want to convert that into normal time like this (below) in the ts file 2:55pm I am working in angular. Please help if you guys know. I have …
How to store data in angular [closed]
I am writing an application using angular. Once the server authentication is done I may have to store few details in the client side. e.g user name , password, location, roles etc which is required …
Async Promise returns undefined or zone aware promise
When calling a function that returns a promise, comes back as undefined unless async operators are removed, then returns ZoneAwarePromise, but contains no data. I know the query returns data when the …
Converting an Image url to base64 in Angular
I am struggling trying to convert a given image url to base64… in my case i have a String with the image’s path how can i convert the given image url in a base64 directly?… i tried this post. Converting an image to base64 in angular 2 but this post is getting the image from a form… how can i