Angular xizmatidan foydalanib, dasturingizning muayyan mantiqasini o'z ichiga oladi va uni bir nechta komponentlar uchun mavjud qiladi. U API qo'ng'iroqlari, ma'lumotlar boshqarish va biznes mantiq kabi operatsiyalarni amalga oshirish uchun ishlatilishi mumkin. Misol: import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; @Injectable({ providedIn: 'root' }) export class ProductService { constructor(private http: HttpClient) { } getProducts() { return this.http.get.('https://api.example.com/products'); } }
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence