Skip to content

Commit f61e69e

Browse files
author
Huaqiao Zhang
committed
add init component for each module
Signed-off-by: Huaqiao Zhang <huaqiaoz@vmware.com>
1 parent d08a9c7 commit f61e69e

40 files changed

+344
-8
lines changed

web/src/app/app-service/app-service.component.css

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>app-service works!</p>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { AppServiceComponent } from './app-service.component';
4+
5+
describe('AppServiceComponent', () => {
6+
let component: AppServiceComponent;
7+
let fixture: ComponentFixture<AppServiceComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [ AppServiceComponent ]
12+
})
13+
.compileComponents();
14+
});
15+
16+
beforeEach(() => {
17+
fixture = TestBed.createComponent(AppServiceComponent);
18+
component = fixture.componentInstance;
19+
fixture.detectChanges();
20+
});
21+
22+
it('should create', () => {
23+
expect(component).toBeTruthy();
24+
});
25+
});
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-app-service',
5+
templateUrl: './app-service.component.html',
6+
styleUrls: ['./app-service.component.css']
7+
})
8+
export class AppServiceComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit(): void {
13+
}
14+
15+
}

web/src/app/app-service/app-service.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import { NgModule } from '@angular/core';
22
import { CommonModule } from '@angular/common';
33

44
import { AppServiceRoutingModule } from './app-service-routing.module';
5+
import { AppServiceComponent } from './app-service.component';
56

67

78
@NgModule({
8-
declarations: [],
9+
declarations: [AppServiceComponent],
910
imports: [
1011
CommonModule,
1112
AppServiceRoutingModule

web/src/app/core-data/core-data.component.css

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>core-data works!</p>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { CoreDataComponent } from './core-data.component';
4+
5+
describe('CoreDataComponent', () => {
6+
let component: CoreDataComponent;
7+
let fixture: ComponentFixture<CoreDataComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [ CoreDataComponent ]
12+
})
13+
.compileComponents();
14+
});
15+
16+
beforeEach(() => {
17+
fixture = TestBed.createComponent(CoreDataComponent);
18+
component = fixture.componentInstance;
19+
fixture.detectChanges();
20+
});
21+
22+
it('should create', () => {
23+
expect(component).toBeTruthy();
24+
});
25+
});
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'app-core-data',
5+
templateUrl: './core-data.component.html',
6+
styleUrls: ['./core-data.component.css']
7+
})
8+
export class CoreDataComponent implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit(): void {
13+
}
14+
15+
}

web/src/app/core-data/core-data.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import { NgModule } from '@angular/core';
22
import { CommonModule } from '@angular/common';
33

44
import { CoreDataRoutingModule } from './core-data-routing.module';
5+
import { CoreDataComponent } from './core-data.component';
56

67

78
@NgModule({
8-
declarations: [],
9+
declarations: [CoreDataComponent],
910
imports: [
1011
CommonModule,
1112
CoreDataRoutingModule

0 commit comments

Comments
 (0)