bug: auto-open modal: ExpressionChangedAfterItHasBeenCheckedError

Demo: http://plnkr.co/edit/DeDNcY6GYinSrDqg6RRQ?p=preview
Like I say here (#1774): all manipulation with components in “init” makes ExpressionChangedAfterItHasBeenCheckedError.
How to work with elements without this error in console?

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: 4.3.3

ng-bootstrap: v1.0.0-beta.2

Bootstrap: 4.0.0-beta

1 possible answer(s) on “bug: auto-open modal: ExpressionChangedAfterItHasBeenCheckedError