Skip to content

Instantly share code, notes, and snippets.

@Qarun-Qadir-Bissoondial
Created April 19, 2020 21:51
Show Gist options
  • Save Qarun-Qadir-Bissoondial/a34c248fb7c7c2cb5fd26269311f114c to your computer and use it in GitHub Desktop.
Save Qarun-Qadir-Bissoondial/a34c248fb7c7c2cb5fd26269311f114c to your computer and use it in GitHub Desktop.
InventoryService - Base Functionality
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class InventoryService {
inventoryCount: number = 0;
constructor() { }
incrementCount() {
this.inventoryCount++;
}
decrementCount() {
this.inventoryCount--;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment