mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-03 12:18:22 +08:00
28 lines
773 B
Plaintext
28 lines
773 B
Plaintext
|
{
|
||
|
"Print to console": {
|
||
|
"scope": "typescript",
|
||
|
"prefix": "log",
|
||
|
"body": [
|
||
|
"console.log('111$1');"
|
||
|
],
|
||
|
"description": "Log output to console"
|
||
|
},
|
||
|
"Create a Angular Component": {
|
||
|
"scope": "typescript",
|
||
|
"prefix": "comp",
|
||
|
"body": [
|
||
|
"import { Component, OnInit } from '@angular/core';",
|
||
|
"@Component({",
|
||
|
"// standalone: true,",
|
||
|
"selector: '$1',",
|
||
|
"template: `<div></div>`,",
|
||
|
"styleUrls: []",
|
||
|
"})",
|
||
|
"export class $2Component implements OnInit {",
|
||
|
"constructor() {}",
|
||
|
"ngOnInit() {}",
|
||
|
"}"
|
||
|
],
|
||
|
"description": "Create a new Angular Component"
|
||
|
}
|
||
|
}
|