Merge pull request #61 from supgeek-rod/patch-2

通过 useClass 来把 OldLogger 作为 NewLogger 的别名
This commit is contained in:
雪狼 2016-09-02 03:28:33 -05:00 committed by GitHub
commit 8c6f6c173d
1 changed files with 1 additions and 1 deletions

View File

@ -938,7 +938,7 @@ block dart-diff-const-metadata
Unfortunately, that's what we get if we try to alias `OldLogger` to `NewLogger` with `useClass`.
我们当然不会希望应用中有两个`NewLogger`的不同实例。
不幸的是,如果我们尝试通过`useClass`来把`NewLogger`作为`OldLogger`的别名,就会导致这样的后果。
不幸的是,如果我们尝试通过`useClass`来把`OldLogger`作为`NewLogger`的别名,就会导致这样的后果。
+makeExample('dependency-injection/ts/app/providers.component.ts','providers-6a')(format=".")