Passing Objects via Query Parameters in Angular 17 Tutorial

Поделиться
HTML-код
  • Опубликовано: 3 июл 2024
  • Visit Blog: AyyazTech.com for written tutorials / articles.
    In this video, I explored how to pass objects in query parameters in Angular 17 by serializing objects into JSON strings and navigating between components based on the serialized data. The process involved setting up routes, creating components, and handling query parameters effectively.
    =======
    Hey everyone! Before we dive into today's video, I wanted to share an exclusive hosting deal from Hostinger that I personally use and recommend. If you're looking to start your own website, click this link (www.hostg.xyz/SHEyO) to get a special discount on their reliable and easy-to-use hosting plans. Plus, you'll be supporting the channel at no extra cost to you. Now, let's get into the video!
    =====================
    Chapters:
    =====================
    00:00:00 Introduction and overview of query parameters
    00:02:00 Setting up Angular CLI and creating a new project
    00:05:02 Generating components for passing objects in query parameters
    00:08:08 Navigating with query parameters and serializing objects
    00:10:38 Deserializing query parameters and displaying object data
    00:11:35 Conclusion and call to action
    #Angular17 #QueryParameters #Serialization
    =====================
    Related Videos:
    =====================
    🔗 How to get query params in Angular 17?: • How to get query param...
    🔗 How to navigate with query params in Angular 17?: • How to navigate with q...
    🔗 How to encode URL in Angular 17?: • How to encode URL in A...
    🔗 How to get ID from URL in Angular 17?: • How to get ID from URL...
    🔗 How to use Angular Material in Angular 17?: • How to use Angular Mat...
    🔗 How to create Observable in Angular 17?: • How to create Observab...
    🔗 How to customize Angular material theme | Angular 17?: • How to customize Angul...
    🔗 How to take input from User in Angular 17?: • How to take input from...
    🔗 How to validate username and password in Angular 17?: • How to validate userna...
    =====================
    To read written versions of AyyazTech tutorials, please visit AyyazTech.com
    =============
    If you want more content like this then please subscribe to my channel and click on the bell icon to get all of the notifications.
    / @ayyaztech
  • НаукаНаука

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

  • @venkateshpamidi7155
    @venkateshpamidi7155 26 дней назад +1

    Im new to ur channel
    Topics are random to watch
    Can u tell which way or which order i will start from starting

    • @AyyazTech
      @AyyazTech  25 дней назад +1

      Thanks for joining the channel! 😊 Currently, there isn't a specific order to follow as I upload tutorials on various "how to" topics in a random order. However, in the future, I plan to record some series for more structured learning.
      For now, here are a few playlists that you might find helpful to start with:
      Angular 17+
      ruclips.net/p/PL2NDx92_iOAFAYS2y3Pu86a88FvZ7EQxW
      Next.js 14+
      ruclips.net/p/PL2NDx92_iOAELceU8cN8kLxJ9UYKkjf2S
      Coding with ChatGPT: Live Sessions
      ruclips.net/p/PL2NDx92_iOAGalSEeODl_JsvaYZxquQnO
      You might also enjoy these related blog articles for more detailed insights:
      How to Call a Function from Another Component in Angular 17
      www.ayyaztech.com/blog/how-to-call-a-function-from-another-component-in-angular-17
      Building a Powerful Chatbot with GPT4All and LangChain: A Step-by-Step Tutorial
      www.ayyaztech.com/blog/building-a-powerful-chatbot-with-gpt4all-and-langchain-a-step-by-step-tutorial
      Don't forget to subscribe, like, share, and click the bell icon for notifications on new content! 📲🚀

  • @saadayman8148
    @saadayman8148 23 дня назад +1

    Wouldn’t recommend doing this , since it reveals users data , you can instead pass the user id in the query and use a resolver to fetch the data.

    • @AyyazTech
      @AyyazTech  23 дня назад +1

      Thank you for your feedback! You make an excellent point about data security. Actually this video was just about teaching that how to pass an object in the query parameters. It can be any other objects as well. But I totally agree with you as well. We should not pass the sensitive information in the url especially passwords. Using user IDs and resolvers is a safer approach to handle sensitive information.
      By the way, For anyone interested in securing their Angular applications, consider these tutorials:
      Related Videos:
      How to use JWT token in Angular 17
      ruclips.net/video/Nh6l9uzU6dg/видео.html
      How to handle JWT token expiration in Angular 17?
      ruclips.net/video/nel5AvW44sc/видео.html
      Blog Articles:
      Creating an API with Node.js: A Step-by-Step Tutorial
      www.ayyaztech.com/blog/creating-an-api-with-nodejs-a-step-by-step-tutorial
      How to use RESTful API with Angular
      www.ayyaztech.com/blog/how-to-use-res-tful-api-with-angular
      Make sure to subscribe to the channel, like the video, and hit the bell icon for more updates! 🔔👍
      Thanks again for your valuable input!