Skip to content

Instantly share code, notes, and snippets.

@msarsha
Last active February 23, 2018 05:12
Show Gist options
  • Save msarsha/8165f5b9b471b9cdeba98b9a0dd978a5 to your computer and use it in GitHub Desktop.
Save msarsha/8165f5b9b471b9cdeba98b9a0dd978a5 to your computer and use it in GitHub Desktop.
@Injectable()
export class NastyService {
constructor() {
}
doNastyOperation(key: any) {
switch (key) {
case 1:
// logic
case 2:
// logic
case 3:
// logic
case 4:
// logic
default:
// logic
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment