diff --git a/src/app/components/about/about.ts b/src/app/components/about/about.ts index ef8662c6..295a3f61 100644 --- a/src/app/components/about/about.ts +++ b/src/app/components/about/about.ts @@ -1,6 +1,4 @@ import {Component} from '@angular/core'; -import {Http} from '@angular/http'; - @Component({ selector: 'about', @@ -11,12 +9,4 @@ import {Http} from '@angular/http'; templateUrl: './about.html' }) export class About { - - constructor(http: Http) { - - } - - ngOnInit() { - - } } diff --git a/src/app/components/home/home.ts b/src/app/components/home/home.ts index 55c5e85d..43b6ce43 100644 --- a/src/app/components/home/home.ts +++ b/src/app/components/home/home.ts @@ -9,11 +9,4 @@ import {Component} from '@angular/core'; templateUrl: './home.html' }) export class Home { - - constructor() {} - - ngOnInit() { - - } - } diff --git a/src/app/components/repo-detail/repo-detail.ts b/src/app/components/repo-detail/repo-detail.ts index 1d753b43..65c85682 100644 --- a/src/app/components/repo-detail/repo-detail.ts +++ b/src/app/components/repo-detail/repo-detail.ts @@ -1,4 +1,4 @@ -import {Component} from '@angular/core'; +import {Component, OnInit} from '@angular/core'; import {ROUTER_DIRECTIVES, ActivatedRoute, Router} from '@angular/router'; import {Github} from '../../services/github'; @@ -10,7 +10,7 @@ import {Github} from '../../services/github'; styleUrls: ['./repo-detail.css'], templateUrl: './repo-detail.html' }) -export class RepoDetail { +export class RepoDetail implements OnInit { private org:string; private repo:string; public repoDetails:any = {}; diff --git a/src/app/components/repo-list/repo-list.ts b/src/app/components/repo-list/repo-list.ts index b93b6358..d48ff22d 100644 --- a/src/app/components/repo-list/repo-list.ts +++ b/src/app/components/repo-list/repo-list.ts @@ -1,4 +1,4 @@ -import {Component} from '@angular/core'; +import {Component, OnInit} from '@angular/core'; import {Github} from '../../services/github'; import {Observable} from 'rxjs/Observable'; import {ROUTER_DIRECTIVES, ActivatedRoute} from '@angular/router'; @@ -11,7 +11,7 @@ import {ROUTER_DIRECTIVES, ActivatedRoute} from '@angular/router'; styleUrls: ['./repo-list.css'], templateUrl: './repo-list.html', }) -export class RepoList { +export class RepoList implements OnInit { org: string; repos: Observable;