About:
- Vue.js lets you extend HTML with HTML attributes called directives
- Vue.js directives offers functionality to HTML applications
- Vue.js provides built-in directives and user defined directives
Why using typescript:
With the knowledge of TypeScript, web applications can be built much faster, as TypeScript has good tooling support.
Good feature:
any valid .js file can be renamed to .ts and compiled with other TypeScript files.
tsc: TypeScript compiler (converts the instructions written in TypeScript to its JavaScript equivalent.)
.d.ts : When a TypeScript script gets compiled, there is an option to generate a declaration file that functions as an interface to the components in the compiled JavaScript.
Tuples in typescript :: Same as array in javascript
Global Variable:
Global variables are declared outside the programming constructs. These variables can be accessed from anywhere within your code.
Class Variables:
These variables are also called fields. Fields or class variables are declared within the class but outside the methods.
Whitespace and Line Breaks
TypeScript ignores spaces, tabs, and newlines that appear in programs. You can use spaces, tabs, and newlines freely in your program and you are free to format and indent your programs in a neat and consistent way that makes the code easy to read and understand.
TypeScript is Case-sensitive
TypeScript is case-sensitive. This means that TypeScript differentiates between uppercase and lowercase characters.
Semicolons are optional
Each line of instruction is called a statement. Semicolons are optional in TypeScript.
A single line can contain multiple statements. However, these statements must be separated by a semicolon.