Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
due to the update to Angular 8, ViewChild need to be updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Mukuna Ciowela Lionel committed Jun 25, 2019
1 parent 5ab3539 commit a9d3788
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/app/demos/carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { NgbCarousel, NgbCarouselConfig } from '@ng-bootstrap/ng-bootstrap';
})
export class DemoCarousel implements OnInit {

@ViewChild('carousel') public carousel: NgbCarousel;
@ViewChild('carousel', {static: true}) public carousel: NgbCarousel;

public pause: boolean;

Expand Down
2 changes: 1 addition & 1 deletion src/o-calendar/o-calendar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class OCalendarComponent {
public today = this.calendar.getToday();
public model: NgbDateStruct;

@ViewChild('bdatepicker') public bdatepicker: ElementRef;
@ViewChild('bdatepicker', {static: true}) public bdatepicker: ElementRef;
@Input()
public color: string;
@Input()
Expand Down
2 changes: 1 addition & 1 deletion src/o-navbar/o-navbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class ONavLink implements DoCheck {
@Input()
public title: string;

@ViewChild('link')
@ViewChild('link', {static: true})
public link: ElementRef;

public isActive = false;
Expand Down

0 comments on commit a9d3788

Please sign in to comment.