239. Redirecting the User (after Deleting a Recipe)
Jul 22, 2026 00:50
· 1:47
· English
· Whisper Turbo
· 2 Хөгжмийн зохиолч
Энэ бичлэгийн хугацаа дууссан 8 хоног.
Бүх цаг хугацааны хадгалах сан →
Зүгээр л харуулах
0:01
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
So we're almost done,
0:03
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
but the delete button isn't entirely working as expected.
0:07
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
It's updating the list,
0:08
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
but we're staying on the page of the deleted recipe.
0:12
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
So to change this,
0:14
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
we need to go to the recipe detail component,
0:17
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
which again is where the delete recipe button lives.
0:20
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
And then on delete recipe,
0:23
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
we simply need to navigate away.
0:25
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
We already got the router injected here.
0:29
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
So we can simply call this router navigate.
0:34
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
And now I simply want to navigate to slash recipes here.
0:38
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
And with that,
0:40
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
we should have the right user experience that once this updates here,
0:44
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
that if I click delete here,
0:48
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
it does delete it and we're taken back to the main view.
0:52
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
So let's try this a final time
0:56
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
here with spaghetti.
1:00
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
searching for a fitting image for spaghetti let's
1:05
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
pick this one here and let's
1:10
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
insert it here and
1:14
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
let's finally enter a description tasty
1:18
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
spaghetti let's hit add ingredient to
1:23
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
add some spaghetti 10 let's say and let's save the form
1:28
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
And this all works,
1:30
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
but one thing is not working.
1:33
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
Do you see which?
1:34
S…
Speaker 2 (239. Redirecting the User (after Deleting a Recipe))
The image.
1:37
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
We're not getting a preview of the image here.
1:40
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
So let's fix this in the next lecture before we finally move
1:44
S…
Speaker 1 (239. Redirecting the User (after Deleting a Recipe))
on.
Энэ бичлэгийг AI (автомат ярианы илэрхийлэл) -ээр бүтээсэн. Зарим алдаа байж болох юм. Хэрэв чухал бол эх аудиотой харьцуулан шалгаарай. AI бодлого
Тодорхойлолт
Энэ бичлэгийн AI товчлуурыг дарж товчлуурыг дарна уу.
Тодорхойлолт...
Энэ бичлэгийн талаар AI- аас асуу
Энэ бичлэгийн талаар юу ч асуу — AI нь тохирох хэсгүүдийг олж хариулт өгөх болно.