penambahan routing master dan monitoring
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<p>master-category works!</p>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { MasterCategoryComponent } from './master-category.component';
|
||||
|
||||
describe('MasterCategoryComponent', () => {
|
||||
let component: MasterCategoryComponent;
|
||||
let fixture: ComponentFixture<MasterCategoryComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ MasterCategoryComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(MasterCategoryComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-master-category',
|
||||
templateUrl: './master-category.component.html',
|
||||
styleUrls: ['./master-category.component.css']
|
||||
})
|
||||
export class MasterCategoryComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>master-location-room works!</p>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { MasterLocationRoomComponent } from './master-location-room.component';
|
||||
|
||||
describe('MasterLocationRoomComponent', () => {
|
||||
let component: MasterLocationRoomComponent;
|
||||
let fixture: ComponentFixture<MasterLocationRoomComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ MasterLocationRoomComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(MasterLocationRoomComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-master-location-room',
|
||||
templateUrl: './master-location-room.component.html',
|
||||
styleUrls: ['./master-location-room.component.css']
|
||||
})
|
||||
export class MasterLocationRoomComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>master-location works!</p>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { MasterLocationComponent } from './master-location.component';
|
||||
|
||||
describe('MasterLocationComponent', () => {
|
||||
let component: MasterLocationComponent;
|
||||
let fixture: ComponentFixture<MasterLocationComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ MasterLocationComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(MasterLocationComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-master-location',
|
||||
templateUrl: './master-location.component.html',
|
||||
styleUrls: ['./master-location.component.css']
|
||||
})
|
||||
export class MasterLocationComponent {
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<p>master-type works!</p>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { MasterTypeComponent } from './master-type.component';
|
||||
|
||||
describe('MasterTypeComponent', () => {
|
||||
let component: MasterTypeComponent;
|
||||
let fixture: ComponentFixture<MasterTypeComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ MasterTypeComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(MasterTypeComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-master-type',
|
||||
templateUrl: './master-type.component.html',
|
||||
styleUrls: ['./master-type.component.css']
|
||||
})
|
||||
export class MasterTypeComponent {
|
||||
|
||||
}
|
||||
@@ -1,12 +1,62 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { MasterCategoryComponent } from './master-category/master-category.component';
|
||||
import { MasterLocationComponent } from './master-location/master-location.component';
|
||||
import { MasterLocationRoomComponent } from './master-location-room/master-location-room.component';
|
||||
import { MasterTypeComponent } from './master-type/master-type.component';
|
||||
|
||||
import { RouterModule } from '@angular/router';
|
||||
import { ChartistModule } from 'ng-chartist';
|
||||
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
||||
import { NgChartsModule } from 'ng2-charts';
|
||||
import { BlockUIModule } from 'ng-block-ui';
|
||||
import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
|
||||
import { BlockTemplateComponent } from 'src/app/_layout/blockui/block-template.component';
|
||||
import { CardModule } from '../../partials/general/card/card.module';
|
||||
import { MatchHeightModule } from '../../partials/general/match-height/match-height.module';
|
||||
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
declarations: [
|
||||
MasterCategoryComponent,
|
||||
MasterLocationComponent,
|
||||
MasterLocationRoomComponent,
|
||||
MasterTypeComponent
|
||||
],
|
||||
imports: [
|
||||
CommonModule
|
||||
CommonModule,
|
||||
ChartistModule,
|
||||
FormsModule,
|
||||
NgChartsModule,
|
||||
CardModule,
|
||||
MatchHeightModule,
|
||||
NgxDatatableModule,
|
||||
PerfectScrollbarModule,
|
||||
NgbModule,
|
||||
BlockUIModule.forRoot({
|
||||
template: BlockTemplateComponent
|
||||
}),
|
||||
RouterModule.forChild([
|
||||
{
|
||||
path: 'master-category',
|
||||
component: MasterCategoryComponent
|
||||
},
|
||||
{
|
||||
path: 'master-location',
|
||||
component: MasterLocationComponent
|
||||
},
|
||||
{
|
||||
path: 'master-location-room',
|
||||
component: MasterLocationRoomComponent
|
||||
},
|
||||
{
|
||||
path: 'master-type',
|
||||
component: MasterTypeComponent
|
||||
}
|
||||
])
|
||||
]
|
||||
})
|
||||
export class MasterModule { }
|
||||
|
||||
Reference in New Issue
Block a user