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

Renaming component methods-list -> subsystems-list

parent c125d276
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router'; 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'; import { SubsystemComponent } from './subsystem/subsystem.component';
const routes: Routes = [ const routes: Routes = [
{ path: '', redirectTo: '/list', pathMatch: 'full' }, { path: '', redirectTo: '/list', pathMatch: 'full' },
{ path: 'list', component: MethodListComponent }, { path: 'list', component: SubsystemListComponent },
{ path: 'subsystem/:id', component: SubsystemComponent }, { path: 'subsystem/:id', component: SubsystemComponent },
]; ];
......
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
<router-outlet></router-outlet> <router-outlet></router-outlet>
<!--<app-search></app-search> <!--<app-search></app-search>
<app-method-list></app-method-list>--> <app-subsystem-list></app-subsystem-list>-->
</div> </div>
\ No newline at end of file
...@@ -5,16 +5,16 @@ import { FormsModule } from '@angular/forms'; ...@@ -5,16 +5,16 @@ import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http'; import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component'; 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 { 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 { AppRoutingModule } from './app-routing.module';
import { SubsystemComponent } from './subsystem/subsystem.component'; import { SubsystemComponent } from './subsystem/subsystem.component';
@NgModule({ @NgModule({
declarations: [ declarations: [
AppComponent, AppComponent,
MethodListComponent, SubsystemListComponent,
SearchComponent, SearchComponent,
SubsystemItemComponent, SubsystemItemComponent,
SubsystemComponent SubsystemComponent
......
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MethodListComponent } from './method-list.component'; import { SubsystemListComponent } from './subsystem-list.component';
describe('MethodListComponent', () => { describe('SubsystemListComponent', () => {
let component: MethodListComponent; let component: SubsystemListComponent;
let fixture: ComponentFixture<MethodListComponent>; let fixture: ComponentFixture<SubsystemListComponent>;
beforeEach(async(() => { beforeEach(async(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
declarations: [ MethodListComponent ] declarations: [ SubsystemListComponent ]
}) })
.compileComponents(); .compileComponents();
})); }));
beforeEach(() => { beforeEach(() => {
fixture = TestBed.createComponent(MethodListComponent); fixture = TestBed.createComponent(SubsystemListComponent);
component = fixture.componentInstance; component = fixture.componentInstance;
fixture.detectChanges(); fixture.detectChanges();
}); });
......
...@@ -3,11 +3,11 @@ import { Subsystem } from '../subsystem'; ...@@ -3,11 +3,11 @@ import { Subsystem } from '../subsystem';
import { MethodsService } from '../methods.service'; import { MethodsService } from '../methods.service';
@Component({ @Component({
selector: 'app-method-list', selector: 'app-subsystem-list',
templateUrl: './method-list.component.html', templateUrl: './subsystem-list.component.html',
styleUrls: ['./method-list.component.css'] styleUrls: ['./subsystem-list.component.css']
}) })
export class MethodListComponent implements OnInit { export class SubsystemListComponent implements OnInit {
subsystems: Subsystem[]; subsystems: Subsystem[];
constructor(private methodsService: MethodsService) { } 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