Created
April 19, 2020 21:51
-
-
Save Qarun-Qadir-Bissoondial/a34c248fb7c7c2cb5fd26269311f114c to your computer and use it in GitHub Desktop.
InventoryService - Base Functionality
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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