Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bailicangdu committed Jan 4, 2022
1 parent 9a49780 commit 7a728b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file added docs/static/images/angular-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/zh-cn/framework/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,11 @@ window.addEventListener('unmount', function () {
```html
<micro-app name='xx' url='xx' disableScopecss></micro-app>
```

#### 3、通过micro-app数据通信修改angular组件数据后视图不更新

**原因:**因为在angular区域外调用了内部的代码(基座和子应用属于不同的angular区域),angular无法知道状态发生了变化。

**解决方式:**通过`ngZone.run()`触发更改检测,具体方式如下:

![angular-question3](../../static/images/angular-1.png ':size=800')

0 comments on commit 7a728b2

Please sign in to comment.