Commit 64cb8b0b authored by Vitali Stupin's avatar Vitali Stupin

Renaming component methods-list -> subsystems-list

parent c125d276
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MethodListComponent } from './method-list/method-list.component';
import { SubsystemListComponent } from './subsystem-list/subsystem-list.component';
import { SubsystemComponent } from './subsystem/subsystem.component';
const routes: Routes = [
{ path: '', redirectTo: '/list', pathMatch: 'full' },
{ path: 'list', component: MethodListComponent },
{ path: 'list', component: SubsystemListComponent },
{ path: 'subsystem/:id', component: SubsystemComponent },
];
......
......@@ -11,6 +11,6 @@
<router-outlet></router-outlet>
<!--<app-search></app-search>
<app-method-list></app-method-list>-->
<app-subsystem-list></app-subsystem-list>-->
</div>
\ No newline at end of file
......@@ -5,16 +5,16 @@ import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { MethodListComponent } from './method-list/method-list.component';
import { SubsystemListComponent } from './subsystem-list/subsystem-list.component';
import { SearchComponent } from './search/search.component';
import { SubsystemItemComponent } from './method-list/subsystem-item/subsystem-item.component';
import { SubsystemItemComponent } from './subsystem-list/subsystem-item/subsystem-item.component';
import { AppRoutingModule } from './app-routing.module';
import { SubsystemComponent } from './subsystem/subsystem.component';
@NgModule({
declarations: [
AppComponent,
MethodListComponent,
SubsystemListComponent,
SearchComponent,
SubsystemItemComponent,
SubsystemComponent
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MethodListComponent } from './method-list.component';
import { SubsystemListComponent } from './subsystem-list.component';
describe('MethodListComponent', () => {
let component: MethodListComponent;
let fixture: ComponentFixture<MethodListComponent>;
describe('SubsystemListComponent', () => {
let component: SubsystemListComponent;
let fixture: ComponentFixture<SubsystemListComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MethodListComponent ]
declarations: [ SubsystemListComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MethodListComponent);
fixture = TestBed.createComponent(SubsystemListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
......
......@@ -3,11 +3,11 @@ import { Subsystem } from '../subsystem';
import { MethodsService } from '../methods.service';
@Component({
selector: 'app-method-list',
templateUrl: './method-list.component.html',
styleUrls: ['./method-list.component.css']
selector: 'app-subsystem-list',
templateUrl: './subsystem-list.component.html',
styleUrls: ['./subsystem-list.component.css']
})
export class MethodListComponent implements OnInit {
export class SubsystemListComponent implements OnInit {
subsystems: Subsystem[];
constructor(private methodsService: MethodsService) { }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment