Skip to content

Instantly share code, notes, and snippets.

@paritosh64ce
Created April 19, 2018 17:01
Show Gist options
  • Save paritosh64ce/c0054a3e2efc662a71f66f3377cd5ede to your computer and use it in GitHub Desktop.
Save paritosh64ce/c0054a3e2efc662a71f66f3377cd5ede to your computer and use it in GitHub Desktop.
TDD Angular component with Jasmine using @angular/cli
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