{
/*
// Place your snippets for TypeScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
"Angular2 Component": {
"prefix": "fccng2component",
"description": "FCC Angular2 Component template",
"body": [
"///
Our Component
", "`,", "})", "", "export class ${2:name}Component implements OnInit {", "// @Input() someInput: boolean = false;", "// @Output() someOutput: EventEmitter = new EventEmitter();", "$0", "\tconstructor() {", "\t\t// To trigger the @Output emitter, use:", "\t\t// this.someOutput.emit({ some: data });", "\t}", "", "\tngOnInit() {", "", "\t}", "}", "" ] } }