Skip to content

Commit

Permalink
update viewchild in docs #147
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper authored Dec 3, 2019
1 parent 24ad73b commit 90e3800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ import { ToastContainerDirective, ToastrService } from 'ngx-toastr';
`
})
export class AppComponent implements OnInit {
@ViewChild(ToastContainerDirective) toastContainer: ToastContainerDirective;
@ViewChild(ToastContainerDirective, {static: true}) toastContainer: ToastContainerDirective;

constructor(private toastrService: ToastrService) {}
ngOnInit() {
Expand Down

0 comments on commit 90e3800

Please sign in to comment.