Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Angular2GenNew to Visual Studio Code? Get it now.
Angular2Gen

Angular2Gen

rocktone

|
3,865 installs
| (3) | Free
Generates Angular 2 Component boilerplate
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Angular2Gen 0.0.3

Note: This produces code inline with Angular 2 RC. 4

Angular2Gen is built to increase productivity when writing Angular 2 components. Instead of keying in endless boilerplate code this extension can do all this for you in one click. All you do is right-click the tree node in explorer, in your project source and create a component, specifying a name and picking one of the generator options. The result is a collection of common boilerplate component files you can build upon.


These files typically are:
    └── locale.json<br/>
    └── my-widget.component.ts<br/>
    └── my-widget.html<br/>
    └── my-widget.less<br/>
    └── my-widget.spec.ts<br/>
    └── my-widget.ts<br/>

Features

Ability to auto-generate boilerplate Angular 2 components.

Optional generation of service code used in the component, together with boilerplate data interface code


Release Notes


14/07/2016

0.0.3 Less variable update

0.0.2 Icon change

0.0.1 Initial release - Locate a directory in Explorer and right-click to Generate Component. Give it a name and pick either no option, or optional service code.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft