Anguar 17 Tutorial - JSON and ASYNC Pipe #9

  Рет қаралды 1,754

Programming with Umair

Programming with Umair

Күн бұрын

Пікірлер: 6
@nacerkraa9549
@nacerkraa9549 6 ай бұрын
Thank you so much, Keep posting your amazing videos.
@MumBorne
@MumBorne 6 ай бұрын
how to fix - No pipe found with name 'json'.ngtsc(-998004)
@ananthasatishkumar9228
@ananthasatishkumar9228 6 ай бұрын
You need to import AsyncPipe in that component
@ЕвгенияОдесса-у8и
@ЕвгенияОдесса-у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-t3t
@uuilly-t3t 2 ай бұрын
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и
@ЕвгенияОдесса-у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.
Angular 17 Tutorial - Signal | Computed | Effect - CRUD App #10
20:04
Programming with Umair
Рет қаралды 2,1 М.
🚀 Angular async / await:  Can You Use It? (OFFICIAL Confirmation)
8:55
Angular University
Рет қаралды 8 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 15 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 39 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 43 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 154 МЛН
Angular 17 Tutorial - Build Reactive Forms #13
24:24
Programming with Umair
Рет қаралды 3,4 М.
Protected routes in Nextjs 15 | Protect Routes with Middleware Nextjs
27:33
JavaScript Unleashed
Рет қаралды 2,9 М.
Angular 17 Tutorial - Observables and Interfaces #11
31:32
Programming with Umair
Рет қаралды 1,5 М.
Add Multi Language Support in Next.js 15 Project
34:19
Programming with Umair
Рет қаралды 5 М.
How to customize Angular material theme | Angular 17?
17:53
AyyazTech
Рет қаралды 20 М.
Angular 17 Tutorial - Routing | Dynamic Routing | Nested Routing #15
29:45
Programming with Umair
Рет қаралды 1,7 М.
Angular 17 Tutorial - Built-in and Custom Pipes #7
16:29
Programming with Umair
Рет қаралды 2,5 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 15 МЛН