Skip to content

Commit

Permalink
fix(loading): add missing oninit
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Jul 11, 2017
1 parent b864b9e commit 4f4535a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/shared/loading.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ describe('LoadingComponent', () => {
});

it('should be initialised', inject([LoadingComponent], (component) => {
expect(component.loading).not.toBeDefined();
expect(component.loading).toBeTruthy();
}));
});
4 changes: 2 additions & 2 deletions src/client/shared/loading.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Component, Input} from '@angular/core';
import {Component, Input, OnInit} from '@angular/core';
import {Observable} from 'rxjs';

@Component({
Expand All @@ -8,7 +8,7 @@ import {Observable} from 'rxjs';
<lb-icon-load *ngIf="loading"></lb-icon-load>`
})

export class LoadingComponent {
export class LoadingComponent implements OnInit {
loading: boolean = true;
@Input() observable = new Observable<any>();

Expand Down

0 comments on commit 4f4535a

Please sign in to comment.