Welcome to my blog !


How to Convert Array into string, comma,hyphen in javascript/Angular

May 2, 2020 ·  2 min read

Contents javascript convert Array to string Using array map with join method Using toString method Convert object array to String in angular During application development, a list of records data retrieved from REST API is in the form of an Array of records in javascript. let assume Permissions REST API returns the list of permissions for user in an application for example following are array of permissions returned from API,...

Angular Material chips tutorials | Best five mat-chip-list examples

May 1, 2020 ·  6 min read

Contents Angular material chips Import angular material chip module material chips basic example Setup Haskell platform on Ubuntu and Linux Check Haskell compiler -GHC, cabal installed or not Angular material chips are used to display group of tags in single element as a chips for a blog posts. These can be used in the following cases Input chips used to represent type of entered information filter chips used to filter the group of data, example is an category or tags of an blog post content...

Primeng toast example | Angular Popup component

April 30, 2020 ·  7 min read

Toast is a UI component interactive popup window for showing the progress of an application. Popup will be hidden automatically after a timeout. Toast in an application is a popup window on main DOM page. In An application, Toast UI is shown to the user for the following use case Authentication successful Give useful message for Server validation errors - Duplicate records, Domain operation results message like the record is deleted from a database....

How to convert/parse json to/from  object in angular with examples| parse json in javascript,typescript  

April 30, 2020 ·  3 min read

Angular is the front end MVC framework, It communicates with the server via JSON format. There are cases you need to send/consume the JSON object from angular application to REST API. Angular uses a typescript object which is a superset of javascript, which always needs to convert to/from object to JSON. This work will cover you different ways to convert JSON to Object or object to json in angular. This is also a popular interview question asked in angular/typescript based jobs....

Ten ways of remove duplicate objects from an array in typescript/javascript

April 29, 2020 ·  3 min read

The below examples takes an input array of objects or primitive types in an array, delete the duplicate items from an array, return the new array without duplicates. if an array contains primitive types, it is very easy to filter Duplicates if an array contains objects, We need to filter the duplicates based on key and value pair equal validation. Removing duplicates is a developer’s daily task in application development....