Angular Interview Questions For Beginners
Angular Interview Questions For Beginners
2. What is TypeScript?
TypeScript is a superset of JavaScript that offers excellent consistency. It is highly
recommended, as it provides some syntactic sugar and makes the code base more
comfortable to understand and maintain. Ultimately, TypeScript code compiles down
to JavaScript that can run efficiently in any environment.
Supports Model-View-Controller
Architecture Uses components and directives
design
Mobile support Not supported by mobile browsers Supports all popular mobile browsers
Dependency
Doesn’t support Supports
Injection
Pipes are simple functions designed to accept an input value, process, and return as an
output, a transformed value in a more technical understanding. Angular supports several
built-in pipes. However, you can also create custom pipes that cater to your needs.
Some key features include:
Pipes are defined using the pipe “|” symbol.
Pipes can be chained with other pipes.
Pipes can be provided with arguments by using the colon (:) sign.
@Pipe({
name: 'demopipe'
})
return null;
name: 'demopipe',
pure : true/false
})