Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit ae578a0

Browse files
pkozlowski-opensourcePatrickJS
authored andcommitted
refactor: minor code cleanup (#103)
1 parent 2f2a141 commit ae578a0

File tree

4 files changed

+4
-21
lines changed

4 files changed

+4
-21
lines changed

src/app/components/about/about.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import {Component} from '@angular/core';
2-
import {Http} from '@angular/http';
3-
42

53
@Component({
64
selector: 'about',
@@ -11,12 +9,4 @@ import {Http} from '@angular/http';
119
templateUrl: './about.html'
1210
})
1311
export class About {
14-
15-
constructor(http: Http) {
16-
17-
}
18-
19-
ngOnInit() {
20-
21-
}
2212
}

src/app/components/home/home.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,4 @@ import {Component} from '@angular/core';
99
templateUrl: './home.html'
1010
})
1111
export class Home {
12-
13-
constructor() {}
14-
15-
ngOnInit() {
16-
17-
}
18-
1912
}

src/app/components/repo-detail/repo-detail.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component} from '@angular/core';
1+
import {Component, OnInit} from '@angular/core';
22
import {ROUTER_DIRECTIVES, ActivatedRoute, Router} from '@angular/router';
33
import {Github} from '../../services/github';
44

@@ -10,7 +10,7 @@ import {Github} from '../../services/github';
1010
styleUrls: ['./repo-detail.css'],
1111
templateUrl: './repo-detail.html'
1212
})
13-
export class RepoDetail {
13+
export class RepoDetail implements OnInit {
1414
private org:string;
1515
private repo:string;
1616
public repoDetails:any = {};

src/app/components/repo-list/repo-list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component} from '@angular/core';
1+
import {Component, OnInit} from '@angular/core';
22
import {Github} from '../../services/github';
33
import {Observable} from 'rxjs/Observable';
44
import {ROUTER_DIRECTIVES, ActivatedRoute} from '@angular/router';
@@ -11,7 +11,7 @@ import {ROUTER_DIRECTIVES, ActivatedRoute} from '@angular/router';
1111
styleUrls: ['./repo-list.css'],
1212
templateUrl: './repo-list.html',
1313
})
14-
export class RepoList {
14+
export class RepoList implements OnInit {
1515
org: string;
1616
repos: Observable<any>;
1717

0 commit comments

Comments
 (0)