Ans: Angular 8 is the latest version by the Angular community. It is the most prominent client-side TypeScript based framework that is mainly used to create dynamic web applications. Angular 8 is very much similar to the previous version of Angular but has some more added features. You can even upgrade your Angular CLI to Angular version 8 very easily.
Ans: It supports TypeScript 3.4. All the angular 8 applications now need TypeScript 3.4 to run. It now supports the Web worker class. It frees the main thread to update the user interface while it facilitates the CPU intensive computations in the background thread.
It has a new compiler called Ivy rendering engine and a new build system called Bazel. It has features that enable you to build a CLI application more quickly.
With Angular 8, you can facilitate dynamic import syntax instead of lazy-loaded modules. Angular 8 now also has an improved ngUpgrade.
Ans: Angular CDK consists of tools, services, components, classes, and modules that are used by the developers to build components of the web. It represents an abstraction of the functionalities in the Angular material themes. So, it can be used to leverage the features of the Angular Material without adopting the material design language.
Ans: True, Angular version 8 supports TypeScript 3.4 because it is mainly used to run the Angular 8 projects. Everything in Angular version 8 is written in TypeScript. So you need to upgrade your TypeScript version to 3.4.
Q6. What Are Components in Angular?
Ans: Components are the most basic building block of a UI in Angular applications and it controls views (HTML/CSS). They also communicate with other components and services to bring functionality to your applications.
Technically components are basically TypeScript classes that interact with the HTML files of the components, which get displayed on the browsers.
The component is the core functionality of Angular applications but you need to know to pass the data into the components to configure them.
Angular applications must have a root component that contains all other components.
Ans: Ivy in Angular version 8 is considered as the Rendering Engine. It was released in Angular 8 as Opt-in. It has opted as the code name for Angular’s next-generation rendering pipeline and compilation. By default, Ivy is intended to be the rendering engine in Angular 9
Ans: Application components execute immediately, without client-side compilation.
Templates are embedded as code within their components so there is no client-side request for template files.
You don't download the Angular compiler, which is pretty big on its own.
The compiler discards unused Angular directives that a tree-shaking tool can then exclude.
Ans: The directives allow you to attach behavior to DOM elements and the at directive decorator provides you additional metadata that determines how directives should be processed, instantiated, and used at run-time.
Ans: When passing data from the Parent to Child component, you can use the @Input decorator in the Child component. When passing data from Child to Parent component, you can use the @Output decorator in the Child component.
Ans: The command ng serve is used to run and load the Angular App.
Ans: If the URL doesn't match any predefined routes then it causes the router to throw an error and crash the app. In this case, you can use a wildcard route. A wildcard route has a path consisting of two asterisks to match every URL.
For example { path: '**', component: PageNotFoundComponent }
Ans: OnChange() – OnInit() – DoCheck() – AfterContentInit() – AfterContentChecked() – AfterViewInit() – AfterViewChecked() – OnDestroy().
Ans:
Ans: NgUpgrade is the library present in the Angular version 8. This upgrade library is mainly used to integrate both AngularJS and Angular components in the application. Moreover, NgUpgrade also helps you in bridging the gap between the Dependency Injection Systems in both AngularJS and Angular.
Ans: The NgModule provides a bootstrap mechanism to launch different applications. Commonly, every Angular App contains many functional modules to do things. The key features of Angular 8 modules are as follows:
Ans: FormsModule and ReactiveformsModule.
Ans: The npm install -g @angular/cli@latest is the command which is used to install the latest version of Angular CLI.
Ans: It is also a Structural directive present in Angular Version 8. The ngSwitch directive is mainly used to add or remove HTML DOM elements. It is much similar to the switch statement of C#. This directive is applied to a container element with the help of a switch expression.
Ans:
Q22. How would you approach solving (some problem) on a high level?
Ans: The problem should be directly related to the work the candidate will actually be doing. You aren‘t looking for a perfect answer or even necessarily a correct answer. Instead, listen to how they approach solving a problem, their ability to break a problem down into parts, and if they can anticipate problems.
Ans: Angular 7 is difficult to use and Angular 8 is easier to use
It has features such as Virtual scrolling, CLI prompts, Application performance, Drag, and drop, Bundle budget, Angular compiler, Angular elements, NativeScript, Better error handling, etc. It has unique and advanced level features such as Differential Loading, Ivy rendering Engine, API builders, Bazel support, Support location, Router backward compatibility, Opt-In Usage sharing, web- workers, etc.
Breaking changes in Angular 7 are- Component Dev Kit (CKD), Material design library and virtual scrolling. Breaking changes in Angular 8 are- Core framework, Angular, material library and CLI.
It will support a lower version of typescript version 3.4. It will not support a lower version of typescript version 3.4.
It supports all types Node.js version It supports Node.js version 12 or later.