- What is Angular?
- Angular is Type Script based Open source web application framework, developed and maintained by Google.
- It offers an easy and powerful way of building front end web-based applications
- What is TypeScript?
- TypeScript is a typed superset of Javascript, It is a Strongly Typed, Object oriented, compiled language. Current version 3.7
- What are features of Angular?
- Component - basic building block to control HTML views
- Modules - set of angular building blocks like component, directives, services etc.
- Directives
- Templates
- Services
- Routing
- Metadata
- Testing
- Different AngularJS and Angular
- AngularJS Supports MVC design model. Angular relies on Components and Directives
- Angular supports a hierarchical Dependency Injection
- Angular supports mobile
- TypeScript is the recommended language for Angular
- Angular is faster than AngularJS
- Angular makes the development and maintenance of large applications easier
- Angular has active support available
- What is Angular Material?
- It is UI Component Library
- What is Angular CLI?
- It is Command Line Interface, we can use command to do below things
- ng new - to create new application
- ng generate class my-new-class -> add a class to your application
- ng generate component my-new-component
- ng generate directive my-new-directive
- ng-generate enum my-new-enum
- ng generate module my-new-module
- ng generate pipe my-new-pipe
- ng generate service my-new-service
- ng serve
- ng build
- Default port
- 4200 we can change ng serve -port=4200
- SASS
- Sass is a preprocessor scripting language that is interpreted or compiled into Cascading Style Sheets. SassScript is the scripting language itself.
- SCSS
- Sassy CSS, It is a pre-processor language that is compiled or interrupted into the CSS
- LESS
- Less is a dynamic preprocessor style sheet language that can be compiled into Cascading Style Sheets and run on the client side or server side
- Ahead of Time (AOT) compiler
- In simple words, when you serve/build your angular application, the Ahead of Time compiler converts your code during the build time before your browser downloads and runs that code. From Angular 9, by default compiling option is set to true for ahead of time compiler.
- Just in Time (JIT) compiler
- Just in time compiler compiles each file separately and it’s mostly compiled in the browser. You don’t have to build your project again after changing your code.
- Pipes
- Pipes are simply a function that we can directly apply on any expression/value in a template to transform it into some other value
- date, upperCase, lowerCase, currency, percent, decimal
- Pure Pipe: Angular calls the pipe when it detects a change in the parameters being passed
- Impure pipe: called every change detection cycle regardless of the change in the input fields
- What are Decorators in Angular
- Decorator provides configuration metadata that determines how the component, class or a function should be processed, instantiated and used at runtime.
- Types of Decorators
- Class Decorators
- It tells us class's intent , it is @Component or @NgModule
- Property Decorators
- @Input, @Output, @ReadOnly
- Method Decorators
- @HostListener
- Parameters Decorators
- @Inject
Monday, May 18, 2020
Angular Interview Questions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment