Skip to content

Instantly share code, notes, and snippets.

View SarathiPrabu's full-sized avatar
🎯
Focusing

Sarathi Prabu Mohan SarathiPrabu

🎯
Focusing
  • Jersey City
  • 06:24 (UTC -04:00)
View GitHub Profile
@SarathiPrabu
SarathiPrabu / add-category.component.ts
Created September 22, 2025 15:46
Subscribe and Unsubscribe
import { Component, OnDestroy } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AddCategoryRequest } from '../models/add-category-request.model';
import { CategoryService } from '../services/category.service';
import { Subscription } from 'rxjs';
@Component({
selector: 'app-add-category',
standalone: true,
imports: [FormsModule],