While going through the tutorial, i am coming across a strange scenario.
while injecting the service in your component if you miss the access modifier it will give you error as given below, but adding it as private or public will run fine.
Dont we have any default scope in Angular if we miss the access modifier ?
export class UserDetailsComponent implements OnInit {
name="";
lastName="";
constructor(userService : UserServiceService) { }
ngOnInit() {
}
save(){
this.userService.saveUser();
}
}
Property 'userService' does not exist on type 'UserDetailsComponent'.