Marmicode
Blog Post
Younes Jaaidi

Your Angular Module is a SCAM!

by Younes Jaaidi • 
Mar 13, 2019 • 4 minutes
Your Angular Module is a SCAM!

Every time I am about to add a component to an Angular application, I feel like there is a bunch of people arguing in my head.


yarn add @wishtack/schematics
yarn ng g @wishtack/schematics/scam hello-world

@NgModule({
  declarations: [
    SandwichFormComponent,
    SandwichPreviewComponent
  ],
  imports: [
    MatButtonModule,
    MatCardModule,
    ReactiveFormsModule
  ]
})
export class CuteLittleSandwichModule {}

yarn add @wishtack/schematics
yarn ng g @wishtack/schematics:scam sandwich/sandwich-preview

app/
  sandwich/
    sandwich-preview/
      sandwich-preview.component.ts|html|...