There are some methods to download a file with Angular. One is to obtain a link that leads to a base64 downloadable file, usually provided by a service.The first method is based on the classic but new generation html.We provide for the generation of the necessary components and services. In […]
Tips: test PWA Angular apps locally
The Angular team has provided a quick command to implement the so-called PWA app. Now, however, the classic ng serve command does not activate the potential of this type of app.One way to activate service workers is to use an alternative local web server that simulates a real online web […]
Obscure sensible data – Javascript
Something we can have the request to obscure sensible data for hiding purposes of information.Pay attention that this is not a security prone method to hide sensible informations because someone can search on network requests and response and find what you’re trying to hide. We should do a true shadowing […]
How to return a GET response from POST with json-server
What I’m going to say is a bad idea. Sometimes it may be necessary to force the hand a little for not quite standard requests. This is the case when a BE, when faced with a request with the POST/PUT/DELETE method, returns an answer that would be more appropriate for […]
Styling select dropdowns with custom CSS and appearance
While the native <select> element offers functionality, its default css styling select appearance often falls short of design aspirations. This article empowers you to create beautiful and customizable select dropdowns using CSS and explores the potential (and limitations) of the appearance property. The native options: limitations and possibilities The default […]