Get to Know How The Angular RedirectTo Function Works

Поделиться
HTML-код
  • Опубликовано: 19 дек 2024

Комментарии • 3

  • @OlehBiblyi
    @OlehBiblyi 3 месяца назад +1

    Thank you, I didn't know about this

  • @rkrao8582
    @rkrao8582 3 месяца назад

    This is great and I liked it. One question though! Is it okay to clutter the route file with logic? We also need to account for testing in that case I guess.

    • @CodeShotsWithProfanis
      @CodeShotsWithProfanis  3 месяца назад

      That's a good point!
      Like we do with resolvers and guards, I would also have that function in a separate file.
      Like you said, to unclutter the route file