Blog
Cancel

Product list in Angular

How to create a ‘Sort by’ dropdown list component Using Angular CLI, create shop-sorting component. To create a component under a specific folder, select that folder in VSCode and right-click...

How to use moment.js in your Angular projects

Install Moment in your app npm install moment --save Import Moment in the component TS file where you plan to use it

Stackblitz examples

Slideshow component in Angular using RxJs Searched slideshow using angular and RxJs on Google and found this slideshow example in Stackblitz. You can find it here.

Useful tools

Turndown - Online HTML to Markdown converter Turndown converts HTML into Markdown with JavaScript. You can find it here.

Text and Typography

This post is to show Markdown syntax rendering on Chirpy, you can also use it as an example of writing. Now, let’s start looking at text and typography. Titles H1 - heading H2 - heading H3 - h...

Fetching data from an API

Fetching Data from an API from Blazor WASM Blazor WASM Windows Authentication I did a lot of research and it took me a while until I found the proper way to call the Web API. Normally, without Wi...

Product service in Angular

import { Injectable } from '@angular/core'; import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/throw'; i...

Generic API Service in Angular

import { Injectable } from '@angular/core'; import { environment } from '../../../environments/environment'; import { Headers, Http, Response, URLSearchParams } from '@angular/http'; import { Obser...

Simple Common table expression using WITH keyword

USE AdventureWorks2008R2; GO -- Define the CTE expression name and column list. WITH Sales_CTE (SalesPersonID, SalesOrderID, SalesYear) AS -- Define the CTE query. ( SELECT SalesPersonID, Sales...

Dynamic PIVOT query

-- Dynamic PIVOT query -- Column names are dynamically generated -- Use of sp_executeSql to execute the SQL query. DECLARE @SQL AS NVARCHAR(MAX) DECLARE @ColumnNames AS NVARCHAR(MAX) CREATE TAB...