Welcome to my blog !


Typescript Example - Convert String/Number to Enum in javascript example

May 6, 2020 ·  2 min read

enum contains strings and number properties, Converting from String/number to enum is not automatic and no built in method. Lets declare Month enum constains holds properties of strings only. Let’s use this an enum object for this tutorial. export enum Month { JAN, FEB, MAR, APR, MAY, JUN } console.log(MONTH); Convert String to Enum in typescript Created Month enum with strings, In typescript, Enum properties are strongly typed, In the first approach, Month enum accepts strings values and returns Enum object....

How to Install and Setup the Haskell platform, compiler in Windows,Linux,Ubuntu

May 5, 2020 ·  4 min read

This post covers how to set up, install the haskell platform environment in windows and linux. You can also check other posts on haskell tutorials Haskell Hello World example program Getting started with haskell Contents Haskell platform Environment Install or setup in windows - GHC,cabal Setup Haskell platform on Ubuntu and Linux Check Haskell compiler -GHC, cabal installed or not Haskell platform Environment This is a quick way of setup and running Haskell code in multiple environments....

Angular primeng bar chart tutorial | p-chart bar type example

May 4, 2020 ·  5 min read

In this blog post, You’ll learn primeng Bar chart tutorials with examples. Contents p-chart bar component add ChartModule into angular application Basic Bar chart component Change width and height of the bar chart Customize bar elements Show or hide Legends with custom font size and color Hide x-axis, y-axis labels Can’t bind to ‘data’ since it isn’t a known property of ‘p-chart’ error A bar chart is one type of chart displayed in the browser, It is used to display a group of data in rectangular bars...

Angular material Snackbar  tutorials | mat-snackbar examples

May 3, 2020 ·  7 min read

Contents What is snackbar UI component? Angular Snackbar Configuration Import MatSnackBarModule into angular application Simple Basic Snackabar Notification message Action button with a message Duration Snackbar Position panelClass custom css styles - color,font Passing data with openFromComponent method Snackbar Stackblitz complete example What is snackbar UI component? Snackbar is an important UI element in designing frontend applications. Snackbar is a small popup window, displays reactive information messages to accept user input from a user....

ES 6 feature - template String literals | Learn ES2015 tutorials

May 3, 2020 ·  3 min read

In this post, I will document the es6 feature - template string literals with examples Es6 introduced template literals feature. It is a syntactical change for multiline string initialization Prior to Es6 versions, Es5 Template Strings Example The string is a group of characters/words enclosed in the single or double quote. if you want to add variable inside a string, It is very difficult to add the string as string need to concatenate and add the variables...