Base de code pour une application electron a base d'angular.

app.module.ts 807B

123456789101112131415161718192021222324252627282930
  1. import { BrowserModule } from "@angular/platform-browser";
  2. import { NgModule } from "@angular/core";
  3. import { AppRoutingModule } from "./app-routing.module";
  4. import { NgxElectronModule } from "ngx-electron";
  5. import { AppComponent } from "./app.component";
  6. import { TitleBarComponent } from "./title-bar/title-bar.component";
  7. import { AppMenuComponent } from "./app-menu/app-menu.component";
  8. import { HomeComponent } from './home/home.component';
  9. import { AboutComponent } from './about/about.component';
  10. @NgModule({
  11. declarations: [
  12. AppComponent,
  13. TitleBarComponent,
  14. AppMenuComponent,
  15. HomeComponent,
  16. AboutComponent
  17. ],
  18. imports: [
  19. BrowserModule,
  20. AppRoutingModule,
  21. NgxElectronModule
  22. ],
  23. providers: [],
  24. bootstrap: [
  25. AppComponent
  26. ]
  27. })
  28. export class AppModule {}