Using Pipes in TypeScript (Angular)

angular typescript pipe

While it’s quite easy to use a pipe in Angular HTML code. In the following case, we are using a translate pipe. <h2>{{ ‘Hello’ | translate }}</h2> But using the same in TypeScript comes with some additional code setup.The setup can be divided into two distinct ways.1. Pipe without any […]

AngularSutra

angular

SECTION 1 9 – What is TypeScript Its a super-set of vanilla JavaScript. It has more features like Types, Classes, Interfaces, etc. But as because the browser does not support Typescript, it is first compiled to JavaScript via the CLI prior running in the browser. 11 – Adding Bootstrap to […]