my -> app

上文说的是 appHighlight 这个自定义指令, 但是在下边的描述中说的是 my 前缀, 所以这边是不是应该是 my 前缀才对呢?
This commit is contained in:
chenc 2019-06-06 10:21:52 +08:00 committed by 雪狼
parent ec37b1e7fb
commit 6102512a4d

View File

@ -149,7 +149,7 @@ Make sure you do **not** prefix the `highlight` directive name with **`ng`** bec
that prefix is reserved for Angular and using it could cause bugs that are difficult to diagnose. that prefix is reserved for Angular and using it could cause bugs that are difficult to diagnose.
确认你**没有**给 `highlight` 指令添加**`ng`**前缀。 确认你**没有**给 `highlight` 指令添加**`ng`**前缀。
那个前缀属于 Angular使用它可能导致难以诊断的 bug。例如这个简短的前缀 `my` 可以帮助你区分自定义指令。 那个前缀属于 Angular使用它可能导致难以诊断的 bug。例如这个简短的前缀 `app` 可以帮助你区分自定义指令。
</div> </div>