Descripción
Create an Angular component with @Input property
File Template: ❌
Prefix
ng:component:input
Scopes
typescript
Snippet de código
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-${1:componentName}',
templateUrl: './${1}.component.html',
styleUrls: ['./${1}.component.css']
})
export class ${2:${1/^./${1:/upcase}/}}Component {
@Input() ${3:inputProp}: ${4:string};
$0
}