Angular 6 custom moment pipe just like whatsapp dates on chat application Here i am creating a pipe ‘moment’ with a parameter ‘fromNow’ which will be used for 3 reasons. less then a day messages will be showing from now variables. like 0 to 44 seconds s a few seconds ago unset ss 44 seconds […]

Read More →

Adding dynamic classes to the angular6 based on route.  

 

Read More →

I had a bug where my application needed currency conversion data to change the currencies via angular PIPES. Pipes has advantages of changing the currencies at front end while disadvantage of Independency from basic component rendering. My component renders so quickly. My pipes needed currency conversion data from a service. So it was showing blank […]

Read More →

Put the bellow code in your angular app.component.ts for auto page scroll to top after moving to new route in any angular 2+ version. app.component.ts in constructor() or ngOnInit()

 

Read More →

Adding a rainbow background to a landing page is so awesome. Please check the demo here https://jsfiddle.net/shakalya/dmchaxfn/   Here we are setting a hue value and increasing dynamically. This is so cool where we can set the dark or light colors by setting the saturation and light property of it. Changing the Hue will the […]

Read More →

In typescript working with angular 6, i needed to make a async function which respond with current countryCode based on users geoLocation. So here I am using nevigator get the current lat lng. Its not possible to get the country code directly from nevigator. SO i needed googleMapsApi By using import { MapsAPILoader } from […]

Read More →

filereader is not working in angular 2 angular 4. I found that Filereader needs fileReader.readAsDataURL(event.target.files[0]) to start reading the file.

 

Read More →

Quick htaccess for angular production build whcih we can use under dist folder. I mostly uses the same so took a backup here.

 

Read More →

Use Current Release: At te last update of this tutorial, Node.js 10.0.0 is the current Node.js release available.

Use LTS Release : At the last update of this tutorial, Node.js 8.11.1 is the LTS release available.

testing node.js official website.

Also, check the npm version

 

Read More →