اكثر اسئلة واجوبة المقابلات طلبا والاختبارات عبر الإنترنت
منصة تعليمية للتحضير للمقابلات والاختبارات عبر الإنترنت والدروس والتدريب المباشر

طوّر مهاراتك من خلال مسارات تعلم مركزة واختبارات تجريبية ومحتوى جاهز للمقابلات.

يجمع WithoutBook أسئلة المقابلات حسب الموضوع والاختبارات العملية عبر الإنترنت والدروس وأدلة المقارنة في مساحة تعلم متجاوبة واحدة.

التحضير للمقابلة

Angular 8 اسئلة واجوبة المقابلات

سؤال 26. What is the purpose of Angular interceptors?

Angular interceptors are used to intercept HTTP requests and responses globally. They allow you to modify the request or response before it is sent or received by the application. Interceptors are commonly used for tasks such as authentication, logging, or adding headers.

Example:

class AuthInterceptor implements HttpInterceptor { ... }

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 27. Explain Angular ViewEncapsulation and its types.

ViewEncapsulation is an Angular feature that determines how styles are applied to components. It has three types: Emulated (default), Native, and None. Emulated encapsulation uses shadow DOM emulation, Native uses the browser's native shadow DOM, and None applies styles globally.

Example:

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

Hello World

',
  styleUrls: ['./app.component.css'],
  encapsulation: ViewEncapsulation.Emulated
})

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 28. What is the purpose of the async pipe in Angular?

The async pipe in Angular is used to subscribe to an Observable or Promise in the template and automatically update the view when the data is received. It simplifies the management of asynchronous data in the component's template.

Example:

{{ data$ | async }}

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 29. Explain the role of the Angular ngClass directive.

The ngClass directive in Angular is used to conditionally apply CSS classes to an element. It allows you to dynamically set classes based on expressions or conditions in the component.

Example:

This div has dynamic classes

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 30. What are Angular services and why are they used?

Services in Angular are singleton objects that provide functionality across the application. They are used to encapsulate and share logic, data, or functionality between components. Services promote modularity and reusability in Angular applications.

Example:

import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root',
})
export class DataService { }

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

الاكثر فائدة حسب تقييم المستخدمين:

حقوق النشر © 2026، WithoutBook.