X Tutup
Skip to content

Commit 5110121

Browse files
committed
docs(ViewQuery): fix typo in documentation
fix typo that confusingly refers to `@Query` rather than `@ViewQuery`. Closes angular#7870
1 parent 27cf897 commit 5110121

File tree

1 file changed

+1
-1
lines changed
  • modules/angular2/src/core/metadata

1 file changed

+1
-1
lines changed

modules/angular2/src/core/metadata/di.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export class ContentChildMetadata extends QueryMetadata {
253253
* class MyComponent {
254254
* shown: boolean;
255255
*
256-
* constructor(private @Query(Item) items:QueryList<Item>) {
256+
* constructor(private @ViewQuery(Item) items:QueryList<Item>) {
257257
* items.changes.subscribe(() => console.log(items.length));
258258
* }
259259
* }

0 commit comments

Comments
 (0)
X Tutup