mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-03-01 11:20:16 +01:00
refactor(app): rename components, move tinymce to separate file
This commit is contained in:
parent
923e56c3d2
commit
3ac268a096
40 changed files with 199 additions and 136 deletions
|
|
@ -4,7 +4,7 @@ import { Component } from '@angular/core';
|
|||
selector: 'ngx-form-inputs',
|
||||
templateUrl: './form-inputs.component.html',
|
||||
})
|
||||
export class NgxFormInputsComponent {
|
||||
export class FormInputsComponent {
|
||||
|
||||
rate1: number = 3;
|
||||
rate2: number = 4;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ import { Component } from '@angular/core';
|
|||
selector: 'ngx-form-layouts',
|
||||
templateUrl: './form-layouts.component.html',
|
||||
})
|
||||
export class NgxFormLayoutsComponent {
|
||||
export class FormLayoutsComponent {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { NgxFormsComponent } from './forms.component';
|
||||
import { NgxFormInputsComponent } from './form-inputs/form-inputs.component';
|
||||
import { NgxFormLayoutsComponent } from './form-layouts/form-layouts.component';
|
||||
import { FormsComponent } from './forms.component';
|
||||
import { FormInputsComponent } from './form-inputs/form-inputs.component';
|
||||
import { FormLayoutsComponent } from './form-layouts/form-layouts.component';
|
||||
|
||||
const routes: Routes = [{
|
||||
path: '',
|
||||
component: NgxFormsComponent,
|
||||
component: FormsComponent,
|
||||
children: [{
|
||||
path: 'inputs',
|
||||
component: NgxFormInputsComponent,
|
||||
component: FormInputsComponent,
|
||||
}, {
|
||||
path: 'layouts',
|
||||
component: NgxFormLayoutsComponent,
|
||||
component: FormLayoutsComponent,
|
||||
}],
|
||||
}];
|
||||
|
||||
|
|
@ -25,12 +25,12 @@ const routes: Routes = [{
|
|||
RouterModule,
|
||||
],
|
||||
})
|
||||
export class NgxFormsRoutingModule {
|
||||
export class FormsRoutingModule {
|
||||
|
||||
}
|
||||
|
||||
export const routedComponents = [
|
||||
NgxFormsComponent,
|
||||
NgxFormInputsComponent,
|
||||
NgxFormLayoutsComponent,
|
||||
FormsComponent,
|
||||
FormInputsComponent,
|
||||
FormLayoutsComponent,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@ import { Component } from '@angular/core';
|
|||
<router-outlet></router-outlet>
|
||||
`,
|
||||
})
|
||||
export class NgxFormsComponent {
|
||||
export class FormsComponent {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
|
||||
import { NgxSharedModule } from '../../@shared/shared.module';
|
||||
import { SharedModule } from '../../shared.module';
|
||||
|
||||
import { NgxFormsRoutingModule, routedComponents } from './forms-routing.module';
|
||||
import { FormsRoutingModule, routedComponents } from './forms-routing.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
NgxSharedModule,
|
||||
NgxFormsRoutingModule,
|
||||
SharedModule,
|
||||
FormsRoutingModule,
|
||||
],
|
||||
declarations: [
|
||||
...routedComponents,
|
||||
],
|
||||
})
|
||||
export class NgxFormsModule { }
|
||||
export class FormsModule { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue