1.0.6 • Published 2 years ago

st-angular v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Angular Standalone Component Generators

This is a collection of generators for Angular standalone components.

Installation

  • npm i st-angular

Generate Components

  • ng g st-angular:cmp page/test/mock/login
  • It generates a new component like this:
import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-login',
  standalone: true,
  imports: [],
  template: `
    <p>LoginComponent works!</p>
  `,
  styles: [``]
})
export class LoginComponent implements OnInit {...}
  • This component will be standalone, without any additional files.