Skip to content

Commit efc4a62

Browse files
author
VladimirAmiorkov
committed
chore: remove 'read' from ViewChild calls
1 parent 9426747 commit efc4a62

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

app/groceries/groceries.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class GroceriesComponent implements OnInit {
2222
isShowingRecent = false;
2323
isLoading = false;
2424

25-
@ViewChild("groceryTextField", { read: ElementRef, static: false }) groceryTextField: ElementRef;
25+
@ViewChild("groceryTextField", { static: false }) groceryTextField: ElementRef;
2626

2727
constructor(private router: Router,
2828
private store: GroceryService,

app/login/login.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export class LoginComponent implements OnInit {
2020
isLoggingIn = true;
2121
isAuthenticating = false;
2222

23-
@ViewChild("initialContainer", { read: ElementRef, static: false }) initialContainer: ElementRef;
24-
@ViewChild("mainContainer", { read: ElementRef, static: false }) mainContainer: ElementRef;
25-
@ViewChild("logoContainer", { read: ElementRef, static: false }) logoContainer: ElementRef;
26-
@ViewChild("formControls", { read: ElementRef, static: false }) formControls: ElementRef;
27-
@ViewChild("signUpStack", { read: ElementRef, static: false }) signUpStack: ElementRef;
28-
@ViewChild("password", { read: ElementRef, static: false }) password: ElementRef;
23+
@ViewChild("initialContainer", { static: false }) initialContainer: ElementRef;
24+
@ViewChild("mainContainer", { static: false }) mainContainer: ElementRef;
25+
@ViewChild("logoContainer", { static: false }) logoContainer: ElementRef;
26+
@ViewChild("formControls", { static: false }) formControls: ElementRef;
27+
@ViewChild("signUpStack", { static: false }) signUpStack: ElementRef;
28+
@ViewChild("password", { static: false }) password: ElementRef;
2929

3030
constructor(private router: Router,
3131
private userService: LoginService,

0 commit comments

Comments
 (0)