docs: 将“这算模式”改为“这种模式”

This commit is contained in:
hizikata 2019-06-17 15:19:39 +08:00 committed by 雪狼
parent fb8dc69136
commit 56cf4f6aaf

View File

@ -157,7 +157,7 @@ technique to separate them out and you may see this pattern in legacy apps.
However, since Angular 6.0, the best practice for providing services is with the However, since Angular 6.0, the best practice for providing services is with the
`@Injectable()` `providedIn` property. `@Injectable()` `providedIn` property.
**注意:**如果你的某个模块也同时有 providers 和 declarations你也*可以*使用这种技巧来把它们分开。你可能会在某些传统应用中看到这模式。 **注意:**如果你的某个模块也同时有 providers 和 declarations你也*可以*使用这种技巧来把它们分开。你可能会在某些传统应用中看到这模式。
不过,从 Angular 6.0 开始,提供服务的最佳实践是使用 `@Injectable()``providedIn` 属性。 不过,从 Angular 6.0 开始,提供服务的最佳实践是使用 `@Injectable()``providedIn` 属性。
</div> </div>