Thank you so much, Keep posting your amazing videos.
@MumBorne6 ай бұрын
how to fix - No pipe found with name 'json'.ngtsc(-998004)
@ananthasatishkumar92286 ай бұрын
You need to import AsyncPipe in that component
@ЕвгенияОдесса-у8и3 ай бұрын
5: 27 user = this.userService.getUser(); Error: Property 'userService' is used before its initialization. I work with Angular 18 and don't understand how you managed it
@uuilly-t3t2 ай бұрын
This is what I did when I ran into that issue: 1. Created a new interface called User (I defined the types name:string; email:string;) 2. Updated the user service so it now uses the correct types from the new user interface. (be sure to import the user interface) 3. In the component, I initialised the user property like this "user!: Observable;" (be sure to import the user interface) 4. I call the getUser() method from inside 'ngOnInit() like this: ngOnInit(): void { this.user = this.userService.getUser(); } Hope this helps anyone who runs into this issue. I'm still learning so it's likely there is a better /more correct way to do this.
@ЕвгенияОдесса-у8и2 ай бұрын
@@uuilly-t3t I also ran it from inside 'ngOnInit()', but then I fount that it's possible just to add in ts.config 'useDefineForClassFields": false'. But your way is more correct.