BeastCode/VSCode-Angular-TypeScript-Snippets

ng-component-inline invalid

cgatian opened this issue · 2 comments

Snippet: ng-component-inline

Description: This snippet produces extra characters :void {} within the class. Looks like the ngOnInit is missing from the signature.

Current Output:

@Component({
  selector: 'app-name',
  template: ``,
  styles: [``]
})
export class NameComponent implements OnInit {
  constructor() { }

  : void { }
}

I added ngOnInit... not sure where it went.

Thanks Chaz! It's been published.