Route Parameters - Angular (Tutorial #21)

Поделиться
HTML-код
  • Опубликовано: 25 июн 2018
  • Route Parameters in Angular - Tutorial no. 21.
    Sometimes we need part of the path in one or more of our routes (the URLs) to be a variable, a common example of this is an ID.
    Share this video: • Route Parameters - Ang...
    Watch complete FREE course here:
    • Introduction- Angular ...
    Lets say we have a User and each User has an ID, the URLs for each User might look like:
    /user/1
    /user/2
    /user/3
    and so on...
    But a better solution is to have one route with one component called UserComponent and pass to the UserComponent the number part of the URL.
    That’s called a parameterised route and we would implement it like so:
    const routes: Routes = [
    { path: 'user/:id', component: UserComponent }
    ];
    The path has a variable called id, we know it’s a variable since it begins with a colon :
    A path can have any number of variables as long as they all start with : and have different names.
    ActivatedRoute: Now we will read the parameter value in userComponent using ACtivatedRoute Class . ActivatedRoute class give us a snapshot object which will return the route parameters as object
    If you liked my channel , subscribe to it and like my videos. For any queries ask you question in comment section
    you can also connect with me @
    - Facebook: / angularjs4beginners
    - LinkedIn: / nisha-singla-82407aa0
    - Website :
    I hope you liked this Angular tutorial. If you are a beginner and facing any trouble in understanding the Route Parameters in Angular 5, feel free to drop the comment below and I'll be happy to help you at my best.

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

  • @nanthuarumugam
    @nanthuarumugam 28 дней назад

    Now am working with Angular, My friend to suggest to watch your videos, I thought it's usual but when coming in to your videos its all more n more clarity, Very proper example. It helped me a lot at this time.

  • @itsprosenjitsardar
    @itsprosenjitsardar 4 года назад +1

    *All the other RUclipsrs will show you 'how to create a ROUTE with PARAMETERS'. But here you'll learn the actual use of 'Route with Parameters'*
    Amazing video. Thank you, madam. 👏

  • @ankit65668
    @ankit65668 4 года назад +1

    thank you Nisha for clear videos.

  • @Akshay-Malthane
    @Akshay-Malthane 5 лет назад

    First i started to see just bcoz of this girl bt then i seriously started to understand and now im going to check her others videos too. Nice teacher indeed

  • @HariKumarReddyGutha
    @HariKumarReddyGutha 5 лет назад +1

    thanks nisha , simply easily understand

  • @yogeshwaranc8785
    @yogeshwaranc8785 2 года назад

    Very nice @Nisha.... I was very tired to search a good video for Angular. Now I got it......Thanks So Much.

  • @raghavendergoudkommula1079
    @raghavendergoudkommula1079 4 года назад +1

    Thank you so much I got good knowledge by seeing this video

  • @prachikhare7759
    @prachikhare7759 2 года назад +1

    Very nice tutorial for Angular !

  • @niteeshmishra8281
    @niteeshmishra8281 3 года назад +2

    I found it really helpful . Your explanation is awesome .

  • @gaganmudvari1553
    @gaganmudvari1553 5 лет назад +2

    Hi nisha. you're videos are awesome to start angular. please complete/update the series with sample project . thank you.

  • @waheedullah2855
    @waheedullah2855 4 года назад +1

    thank a lots. very very very good video

  • @gaganmudvari1553
    @gaganmudvari1553 5 лет назад +1

    Hey nisha, you have done very nice job. Thank you. Your presenting style us awesome. So clear. But one request . I want you to to deep in it like full tutorial. N please make one series of latest angularjs full project ideas like database binding n backend+frontend data handling in VS mvc framework.
    N again thank you so for your great contribution on this to us. I appreciate you to upload more n more latest videos upcoming future. Take care n god bless you.

  • @preethirmani
    @preethirmani 3 года назад +1

    Such a clear explanation!!!!

  • @anitashally2076
    @anitashally2076 4 года назад +1

    Hello Nisha, That was an awesome explanation. It really helps a lot. Keep doing more videos. Thank you

  • @user-sl5bi5qn9d
    @user-sl5bi5qn9d 10 месяцев назад

    Bymistake watch this video and now I love it

  • @dasisandeep479
    @dasisandeep479 4 года назад +1

    Good explanation.I understood very well.Thanks a lot.

  • @karthickmahalingam9776
    @karthickmahalingam9776 5 лет назад

    Thanks Nisha. Your all videos really awesome. Please upload lifecycle hooks and forms in angular

  • @vhusani
    @vhusani 2 года назад +1

    wow, this is amazing

  • @abhilashrao1392
    @abhilashrao1392 9 месяцев назад

    Very Nicely Explained. 😀

  • @codewithsingh7710
    @codewithsingh7710 4 года назад

    awesome video👍💖

  • @ImGufranKarim
    @ImGufranKarim 4 года назад +1

    The most confusing topic in angular, It was superb explanation i have cleared my doubt :)

  • @karnan4483
    @karnan4483 5 лет назад +1

    Thank you very much ji.......

  • @Ashokkumar-qe9uc
    @Ashokkumar-qe9uc 5 лет назад +4

    Thanks Nisha. please upload lifecycle hooks and forms in angular5.

  • @sukanyasukku2242
    @sukanyasukku2242 4 года назад +1

    hi Nisha.. Thank you sooooomuch for your videos. explanation way is awesome.no one do like you. please do more vedios. thanks alot....

    • @NishaSingla
      @NishaSingla  4 года назад

      Good to hear Sukanya you liked it.

  • @prashantpal4686
    @prashantpal4686 2 года назад +1

    Impressive thanks

  • @mcspraint4591
    @mcspraint4591 3 года назад +1

    Mam thank you sooo much for this video this is exactly what i wanted to know...

    • @NishaSingla
      @NishaSingla  3 года назад

      Glad it helped ... keep learning 😀

    • @mcspraint4591
      @mcspraint4591 3 года назад

      Mam...thank you soooo much...can you be my mentor ma'am?.;Angular is my love and i have no mentor in this field

  • @myvue4587
    @myvue4587 4 года назад

    Good explanation, I like very well.... thanks a lot.......

  • @laxmanuideveloper7880
    @laxmanuideveloper7880 2 года назад +1

    Thanks, Nisha
    this video was helped a lot. please do more on real-time project requirements

  • @rupindersingh5332
    @rupindersingh5332 2 года назад +1

    You are awesome 👌👌

  • @yashodhamh7605
    @yashodhamh7605 3 года назад +1

    Thank u so much mam, it helped me a lot

  • @jash9341
    @jash9341 3 года назад +1

    The explanation and ur voice super

  • @vishtrinity
    @vishtrinity 4 года назад

    9:47 , how does this work adding the id in the url..Please elaborate

  • @IqbalAhmed-qk5ix
    @IqbalAhmed-qk5ix 3 года назад

    superb
    Nice explain

  • @ravindujeewhantha4012
    @ravindujeewhantha4012 4 года назад +1

    ma'am, is there is any way to hide and pass that params in angular?

  • @letscode1388
    @letscode1388 2 года назад +1

    Weldon behna. Keep it up

  • @baniksou
    @baniksou 5 лет назад

    can you please advice me how can I link name instead of id?

  • @atlamasthanaiah7911
    @atlamasthanaiah7911 3 года назад +1

    How to get dynamic data. Will you give suggestions. Like first time I clicked 2 and second time I clicked 4 how to display 4 id employee data

  • @jackattack0919
    @jackattack0919 2 года назад +1

    All your video are really awesome, so much clear and so much straighTforward. Can you make a video of ngRx?

  • @dollardreams5811
    @dollardreams5811 5 лет назад

    Plz upload video about difference between the angular versions

  • @adhivenkatesh3431
    @adhivenkatesh3431 5 лет назад +1

    Madam, i have gone through videos for angualrjs and angular it was superb nice to understand , thanks for your service and your youtubes , can you make videos web api with crud operations and how to deploy in IIS and also how to configure in MVC projects, which will be useful to all , thanks in advance.

  • @kumkumtripathi3198
    @kumkumtripathi3198 5 лет назад

    Hi... can u design a website for me using angular or bootstrap framework

  • @papputarun
    @papputarun 5 лет назад +1

    Hi mam
    Crud operation post kigye angular 7 with express framework

  • @mcspraint4591
    @mcspraint4591 3 года назад +1

    Madam...ap angular se back end(express server) ka session kaise manage karte hai..;plz make a video on that madam...plz plz plz..;

  • @shamsapkale6469
    @shamsapkale6469 6 лет назад

    Thanks you Nisha,but I am Waiting for your next videos in the angular 4/5 series

  • @shibanarayanmohapatro6263
    @shibanarayanmohapatro6263 4 года назад

    hello nisha
    can u tell me how to navigate from login page to another component

  • @Ramkirat1991
    @Ramkirat1991 3 года назад

    i want to press Like button 10000000+ times 😁👍

  • @EzElucidate
    @EzElucidate 3 года назад

    How can i do parameter routing in routing module

  • @saikumarmogilla450
    @saikumarmogilla450 3 года назад

    HI Nisha, plz tell me in simple what is dependency injection

  • @basantijena360
    @basantijena360 2 года назад

    Hi Nisha i have one doubt...... how to handel multiple observables in single component

  • @shilpaanthati8324
    @shilpaanthati8324 2 года назад +1

    Your explanation is awesome. Could you please do videos for higher versions of Angular.

  • @Dreamriter
    @Dreamriter 5 лет назад

    Nisha please upload tutorials about spring and hibernet.. for beginners to advance

  • @ankit65668
    @ankit65668 4 года назад +1

    also please update or create new videos according to latest angular version

  • @rambabumudragalla8470
    @rambabumudragalla8470 2 года назад +1

    Hi please do video on ngrx❤️

  • @manatube5521
    @manatube5521 5 лет назад

    Very nice..u post more videos

  • @shamsapkale6469
    @shamsapkale6469 6 лет назад +1

    Hi Nish Ji, Plz tell me ,What is webpack in angular 2/4/5 ?

    • @NishaSingla
      @NishaSingla  6 лет назад

      Webpack is a tool to bundle your assets together. When we create JS based application we have so many javascript files so webpack bundled them all together into single file(bundle) so that we don't need to make so many network requests to download each file

    • @shamsapkale6469
      @shamsapkale6469 6 лет назад

      Thanks Nisha Ji

  • @ajaykumar-nx7kb
    @ajaykumar-nx7kb 5 лет назад

    Please make video on angular Form

  • @durgamohapatra6282
    @durgamohapatra6282 4 года назад +1

    Hi mam,
    Just because of you.i am able to understand angular but I think this not enough to crack interview.plzz mam plzz upload ( module, feature module,TDF,reactive form, observable, lazy loading).plzz upload these concept mam.
    Thanks,

  • @rajeshg2958
    @rajeshg2958 4 года назад +1

    Thanks Nisha you way of explanation is very good. Could please let me know how to itreate json array object in chaild component while passing from parent component

    • @NishaSingla
      @NishaSingla  4 года назад

      Thank you Rajesh. you can use service or use data to pass data to child route

  • @swathiy1497
    @swathiy1497 4 года назад +1

    hi nishisha i am very satisfying with ur videos ...is it suitable for angular 6

  • @mukeshsharma-vi5db
    @mukeshsharma-vi5db 4 года назад +1

    HI Nisha ma'm i want to learn javascript and jquary . plz share video

  • @venkateshyadla9798
    @venkateshyadla9798 6 лет назад +1

    Thanks you Nisha,but last week you mentioned play list name was angular 4 tutorial,but now it is angular 5,I am in confusion now which version I am learning

    • @NishaSingla
      @NishaSingla  6 лет назад +1

      This series will work fine for both angular 4 and 5 ,don’t worry

  • @venkatakrishna583
    @venkatakrishna583 4 года назад

    Hi Nisha ji your videos are good could you please do you a video on feature modules

  • @joshibabu2005
    @joshibabu2005 5 лет назад

    Thanks please make bootstrap carousel video and make forms creation video

  • @rkinsas2876
    @rkinsas2876 3 года назад +1

    {{user.id}}
    I got a typo at 'Slash'.. If anyone face same issue, they can better take this line from here..

  • @swa2300
    @swa2300 6 лет назад

    Y did u use snapshot...it have some limitations...u should have used parammap n swichmap options.

  • @ranjitapatel7804
    @ranjitapatel7804 4 года назад +1

    Please upload the video about reactive form

  • @Dreamriter
    @Dreamriter 5 лет назад

    Please guide every step . And you teach method very fast make it little bit slow. Your blog is good.... do more but in detail

  • @angulardesign7412
    @angulardesign7412 4 года назад

    plz help me to build my portfolio website

  • @HariKumarReddyGutha
    @HariKumarReddyGutha 5 лет назад

    please upload more vedios full angular5 course

  • @mcspraint4591
    @mcspraint4591 3 года назад

    Ma'am,
    in the service class why didn't we define the method like getUser(id: number}{
    return this.http.get("jsonplaceholder.typicode.com/users/:" + id)
    }
    instead of getUser(id:number){
    this.http.get("jsonplaceholder.typicode.com/users/" + id)
    }
    i mean why didn't we put collon ":" before the id like URL + "/:" +id
    and doing URL + "/" +id instead??????
    cause generally we write a parameterized api like URL +"/:" +id
    PLEASE PLEASE REPLY TO THIS QUESTION OF MINE??? PLZ PLZ ma'am...I WORK HARD Ma'am and I DONT HAVE NO ONE TO GUIDE ME..
    YOU ARE THE ONLY ONE THAT I FOLLOW ON TGE RUclips WHEN IT COMES TO ANGULAR

    • @mcspraint4591
      @mcspraint4591 2 года назад

      cus its already inside ngoninit method

  • @t.sandeepreddy5004
    @t.sandeepreddy5004 Год назад +1

    Hi Nisha,
    As you said, -> (this.route.snapshot.params['id']) has another way of receiving the data from route, in which tutorial I can find the same ? please let me know the tutorial number.
    Thanks in advance!

  • @srikanth-he6ri
    @srikanth-he6ri 6 лет назад +2

    can you make routing video based on ngIf condition

    • @srikanth-he6ri
      @srikanth-he6ri 6 лет назад

      this is my github link github.com/srikanthdasari66/omkie-app/tree/master/src

    • @NishaSingla
      @NishaSingla  6 лет назад +1

      sure, will update soon

    • @Dreamriter
      @Dreamriter 5 лет назад

      Nisha Singla please upload tutorials about spring and hibernet. You guide very clear

  • @suryateja2524
    @suryateja2524 3 года назад

    please make the videos on ionic with anguler and say how to use capacitor plugin.
    why because is no good explanation for ionic in hole_youtube( );

  • @rajashekhar433
    @rajashekhar433 5 лет назад

    Life cycle is important but there is no video on that 🙁🤔

    • @suryateja2524
      @suryateja2524 3 года назад

      sir can u say what is life cycle in anguler ?????

  • @mcspraint4591
    @mcspraint4591 2 года назад

    mam not working plz make another way

  • @mcspraint4591
    @mcspraint4591 3 года назад

    Ma'am,
    in the service class why didn't we define the method like getUser(id: number}{
    return this.http.get("jsonplaceholder.typicode.com/users/:" + id)
    }
    instead of getUser(id:number){
    this.http.get("jsonplaceholder.typicode.com/users/ + id)
    }
    i mean why didn't we put collon ":" before the id like URL + "/:" +id
    and doing URL + "/" +id instead??????
    cause generally we write a parameterized api like URL +"/:" +id
    PLEASE PLEASE REPLY TO THIS QUESTION OF MINE??? PLZ PLZ ma'am...I WORK HARD Ma'am and I DONT HAVE NO ONE TO GUIDE ME..
    YOU ARE THE ONLY ONE THAT I FOLLOW ON TGE RUclips WHEN IT COMES TO ANGULAR

  • @mcspraint4591
    @mcspraint4591 3 года назад

    Ma'am,
    in the service class why didn't we define the method like getUser(id: number}{
    return this.http.get("jsonplaceholder.typicode.com/users/:" + id)
    }
    instead of getUser(id:number){
    this.http.get("jsonplaceholder.typicode.com/users/ + id)
    }
    i mean why didn't we put collon ":" before the id like URL + "/:" +id
    and doing URL + "/" +id instead??????
    cause generally we write a parameterized api like URL +"/:" +id
    PLEASE PLEASE REPLY TO THIS QUESTION OF MINE??? PLZ PLZ ma'am...I WORK HARD Ma'am and I DONT HAVE NO ONE TO GUIDE ME..
    YOU ARE THE ONLY ONE THAT I FOLLOW ON TGE RUclips WHEN IT COMES TO ANGULAR

  • @mcspraint4591
    @mcspraint4591 3 года назад

    Ma'am,
    in the service class why didn't we define the method like getUser(id: number}{
    return this.http.get("jsonplaceholder.typicode.com/users/:" + id)
    }
    instead of getUser(id:number){
    this.http.get("jsonplaceholder.typicode.com/users/ + id)
    }
    i mean why didn't we put collon ":" before the id like URL + "/:" +id
    and doing URL + "/" +id instead??????
    cause generally we write a parameterized api like URL +"/:" +id
    PLEASE PLEASE REPLY TO THIS QUESTION OF MINE??? PLZ PLZ ma'am...I WORK HARD Ma'am and I DONT HAVE NO ONE TO GUIDE ME..
    YOU ARE THE ONLY ONE THAT I FOLLOW ON TGE RUclips WHEN IT COMES TO ANGULAR

  • @mcspraint4591
    @mcspraint4591 3 года назад

    Ma'am,
    in the service class why didn't we define the method like getUser(id: number}{
    return this.http.get("jsonplaceholder.typicode.com/users/:" + id)
    }
    instead of getUser(id:number){
    this.http.get("jsonplaceholder.typicode.com/users/ + id)
    }
    i mean why didn't we put collon ":" before the id like URL + "/:" +id
    and doing URL + "/" +id instead??????
    cause generally we write a parameterized api like URL +"/:" +id
    PLEASE PLEASE REPLY TO THIS QUESTION OF MINE??? PLZ PLZ ma'am...I WORK HARD Ma'am and I DONT HAVE NO ONE TO GUIDE ME..
    YOU ARE THE ONLY ONE THAT I FOLLOW ON TGE RUclips WHEN IT COMES TO ANGULAR

  • @mcspraint4591
    @mcspraint4591 3 года назад

    Ma'am,
    in the service class why didn't we define the method like getUser(id: number}{
    return this.http.get("jsonplaceholder.typicode.com/users/:" + id)
    }
    instead of getUser(id:number){
    this.http.get("jsonplaceholder.typicode.com/users/ " + id)
    }
    i mean why didn't we put collon ":" before the id like URL + "/:" +id
    and doing URL + "/" +id instead??????
    cause generally we write a parameterized api like URL +"/:" +id
    PLEASE PLEASE REPLY TO THIS QUESTION OF MINE??? PLZ PLZ ma'am...I WORK HARD Ma'am and I DONT HAVE NO ONE TO GUIDE ME..
    YOU ARE THE ONLY ONE THAT I FOLLOW ON TGE RUclips WHEN IT COMES TO ANGULAR