Skip to content

請問以下的錯誤訊息,可能是什麼原因? #5

@thomas0728

Description

@thomas0728

Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current value: 'dialog_body'. It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?

setup-dialog.component.html 如下:

<div id="id_content">
           <h1>dffddf</h1>
</div>

<hr>
<div id="id_foot" fxLayoyt="row">
  <button >Delete</button>
  <button >Cancel</button>
  <button >Save</button>
</div>

感激不儘

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions