Самые популярные вопросы и ответы для интервью и онлайн-тесты
Образовательная платформа для подготовки к интервью, онлайн-тестов, учебных материалов и живой практики

Развивайте навыки с целевыми маршрутами обучения, пробными тестами и контентом для подготовки к интервью.

WithoutBook объединяет вопросы для интервью по предметам, онлайн-практику, учебные материалы и сравнительные руководства в одном удобном учебном пространстве.

Подготовка к интервью

Angular 8 вопросы и ответы для интервью

Вопрос 21. Explain the concept of Angular decorators.

Decorators in Angular are functions that modify the behavior of classes, methods, or properties. They are used to annotate and configure Angular components, directives, services, and modules.

Example:

@Component({
  selector: 'app-root',
  template: '

Hello World

',
})

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 22. What are Angular guards and how are they used?

Angular guards are used to control the navigation to or from a route. There are different types of guards, such as CanActivate, CanDeactivate, CanLoad, and Resolve. They are implemented as services and can be added to route configurations.

Example:

canActivate: [AuthGuard]

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 23. Explain the concept of Angular directives.

Directives in Angular are markers on a DOM element that tell Angular to attach a specified behavior to that DOM element or its children. Directives can be structural (changing the structure of the DOM) or attribute (changing the behavior or appearance of the DOM).

Example:

This is visible

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 24. What is Angular CLI and how is it useful?

Angular CLI (Command Line Interface) is a command-line tool that facilitates the development, testing, and deployment of Angular applications. It provides commands for creating components, services, modules, building, testing, and more, making it easier to manage the development workflow.

Example:

ng generate component my-component

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 25. Explain the use of *ngFor and *ngIf directives.

*ngFor is a structural directive in Angular used for iterating over a list of items and creating a template for each item. *ngIf is a structural directive that conditionally includes or excludes elements based on an expression.

Example:

{{ item }}

This is shown if the condition is true

Это полезно? Добавить комментарий Посмотреть комментарии
 

Самое полезное по оценкам пользователей:

Авторские права © 2026, WithoutBook.