Skip to content

Commit

Permalink
Rename components and modules
Browse files Browse the repository at this point in the history
  • Loading branch information
suminb committed May 27, 2017
1 parent df8e4ce commit 7ac6715
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions frontend/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { HttpModule } from '@angular/http';
import { RouterModule } from '@angular/router';

import { AppComponent } from './app.component';
import { ListDartComponent } from './listdart.component';
import { ViewDartComponent } from './viewdart.component';
import { DartListComponent } from './dart-list.component';
import { DartViewComponent } from './dart-view.component';
import { DartService } from './dart.service';

@NgModule({
Expand All @@ -17,18 +17,18 @@ import { DartService } from './dart.service';
RouterModule.forRoot([
{
path: 'dart',
component: ListDartComponent
component: DartListComponent
},
{
path: 'dart/:id',
component: ViewDartComponent
component: DartViewComponent
}
])
],
declarations: [
AppComponent,
ListDartComponent,
ViewDartComponent,
DartListComponent,
DartViewComponent,
],
providers: [
DartService
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { DartService } from './dart.service';

@Component({
selector: 'app-root',
templateUrl: './listdart.component.html',
templateUrl: './dart-list.component.html',
styleUrls: ['./app.component.css'],
providers: [DartService]
})
export class ListDartComponent implements OnInit {
export class DartListComponent implements OnInit {
records;

constructor(private dartService: DartService) {}
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import { DartReport } from './dart.model';

@Component({
selector: 'app-root',
templateUrl: './viewdart.component.html',
templateUrl: './dart-view.component.html',
styleUrls: ['./app.component.css'],
providers: [DartService]
})
export class ViewDartComponent implements OnInit {
export class DartViewComponent implements OnInit {
report;

constructor(
Expand Down

0 comments on commit 7ac6715

Please sign in to comment.