DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,503 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Umme Q
Umme Q

Posted on

Transpiling in Angular

1.Transpiling code is a similar concept to the compilation process, with one big difference.

β€’Compiling: code from a high level language is get converted to machine level language.
β€’Transpiling: code from a high level language gets converted to another high level language.

2.Browsers can't execute TypeScript directly. Typescript must be "transpiled" into JavaScript using the tsc compiler, which requires some configuration

TypeScript----->Transpile----->JavaScript
Command----->tsc filename.ts

3.Three two files for TypeScript Configuration.
β€’tsconfig.jsonβ€”TypeScript compiler configuration.
β€’typingsβ€”TypesScript declaration files.

4.Will add TypeScript configuration file called tsconfig.json to o project to guide the compiler as it generates JavaScript files.

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.