-
-
Save paritosh64ce/c0054a3e2efc662a71f66f3377cd5ede to your computer and use it in GitHub Desktop.
TDD Angular component with Jasmine using @angular/cli
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
export class CalculatorComponent implements OnInit { | |
param1: number; | |
param2: number; | |
result: number; | |
constructor() { } | |
add() { | |
this.result = this.param1 + this.param2; | |
} | |
ngOnInit() { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment