‫Hello, my friends.
‫In this video we will start adding the actions between destinations.
‫So from this home fragment I need to go to the new node fragment.
‫So I will drag and drop like this.
‫You can see if you're opening the nav graph XML that an action called action home fragment to new node
‫fragment is created.
‫Also I need to add a new.
‫Action from home fragment to update.
‫Note Fragment.
‫You can see there is another action tag is added and attributes the ID and the destination home fragment
‫to update.
‫Note Fragment.
‫Let's move to the new note fragment from note to new from new note fragment.
‫We need to go back to the home fragment.
‫So I need to drag this and go back.
‫You can see this arrow.
‫And here we go.
‫That inside the new note fragment we've created.
‫And.
‫Action.
‫Its ID Action.
‫New Node Fragment two.
‫Home Fragment.
‫For the third fragment I need to create here.
‫Update.
‫Note I need to drag it.
‫Oops.
‫I need to drag it to the home fragment.
‫And you can see that we've added a new action update node fragment to home fragment.
‫Okay.
‫I need to add for the update fragment.
‫I need to add something special called argument.
‫I will call about it.
‫I will lectured about it, but now please follow me.
‫Its name is note app archetype would be comm dot master coding.
‫Dot.
‫Where is the note?
‫Master coding dot note taking app.
‫Oops.
‫The note taking.
‫It's similar to the package name, please.
‫It's very, very important to specify.
‫It correctly because it's case sensitive and modal dot.
‫Note.
‫And nullable equal to true.
‫Okay.
‫So what?
‫What is argument in nav graph?
‫Navigation allows you to attach data to a navigation operation by defining arguments for the destination.
‫For example, a user profile destination might take a user ID argument to determine which user to display.
‫In general, you should strongly prefer passing only the minimal amount of data between destinations.
‫And as we've learned here, that we've passing the node between the destinations, the update fragment
‫to home fragment.
‫I'm passing this argument, this data from update to home fragment.