Browse Source

dev app standalone migration

pull/22829/head
erdemcaygor 11 months ago
parent
commit
b200bcf103
  1. 2
      npm/ng-packs/apps/dev-app/src/app/app-routing.module.ts
  2. 11
      npm/ng-packs/apps/dev-app/src/app/home/home-routing.module.ts
  3. 6
      npm/ng-packs/apps/dev-app/src/app/home/home.component.ts
  4. 10
      npm/ng-packs/apps/dev-app/src/app/home/home.module.ts

2
npm/ng-packs/apps/dev-app/src/app/app-routing.module.ts

@ -5,7 +5,7 @@ const routes: Routes = [
{
path: '',
pathMatch: 'full',
loadChildren: () => import('./home/home.module').then(m => m.HomeModule),
loadComponent: () => import('./home/home.component').then(m => m.HomeComponent),
},
{
path: 'account',

11
npm/ng-packs/apps/dev-app/src/app/home/home-routing.module.ts

@ -1,11 +0,0 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HomeComponent } from './home.component';
const routes: Routes = [{ path: '', component: HomeComponent }];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class HomeRoutingModule {}

6
npm/ng-packs/apps/dev-app/src/app/home/home.component.ts

@ -1,10 +1,12 @@
import { AuthService } from '@abp/ng.core';
import { AuthService, LocalizationPipe } from '@abp/ng.core';
import { Component, inject } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ButtonComponent, CardBodyComponent, CardComponent } from '@abp/ng.theme.shared';
@Component({
standalone: false,
selector: 'app-home',
templateUrl: './home.component.html',
imports: [CommonModule, LocalizationPipe, CardComponent, CardBodyComponent, ButtonComponent],
})
export class HomeComponent {
protected readonly authService = inject(AuthService);

10
npm/ng-packs/apps/dev-app/src/app/home/home.module.ts

@ -1,10 +0,0 @@
import { NgModule } from '@angular/core';
import { SharedModule } from '../shared/shared.module';
import { HomeRoutingModule } from './home-routing.module';
import { HomeComponent } from './home.component';
@NgModule({
declarations: [HomeComponent],
imports: [SharedModule, HomeRoutingModule],
})
export class HomeModule {}
Loading…
Cancel
Save