 Hello everyone in this module I'm going to demonstrate how you can call parent component methods through child component. So here we will be using order dot action to implement the scenario. So jumping into developer console. First I'm going to create a new component so it will be a child component. So naming it as child action component. So in this component. I'm going to create one attribute. Naming it as parent action and its type will be or a dot action. So this is special type like if you want to create any attribute and that should work as an action so you need to define this type as or a dot action. Name is parent action. Now I'm going to create one more attribute naming it as value for parent type equals to string and its default value will be child value for parent. Right so method will be defined in the parent component and we are going to call that method in the child component. So that parent component will be receiving this value that we have set here as a default in this attribute value for parent. Now after this I'm going to create a P tag and inside this P tag I'm writing child component so that we can identify it uniquely. Then I'm creating a button labeling it as call parent method. And on click of this we are going to call this parent action. So here see carefully I'm using V dot parent action so generally we use C dot and the method name but here we are not going to define this parent action in the controller of this child component. It is basically used here to link the parent component method so that that can be called through child component. So whenever you want to call method of parent component so in that case first you need to create this attribute of type or a dot action and then here you can use it on button click. Now this parent action we need to map it with a parent component so that when we click on this button call parent method so parent method will be called or executed automatically. So now I'm going to save this code. So this child component is implemented properly now it's time to implement parent component. So I'm going to create one more component naming it as parent action component and clicking on submit. So here I'm creating one attribute. Its name is value from child. So right now we created one attribute here value for parents so this value will be available in this attribute. So this we will be doing through the method. So basically if you want to pass the values so like we have bounded and bounded expressions other than that you can use or a method and or a detection so or a method basically we use that I also demonstrated in my previous video. So in that case method will be available in child component and it will be called through parent. Now in this module you are learning method is defined in parent and it is called by child component. So there we use or a detection. So here I'm writing parent component so that we can uniquely identify this. Then be our value from child component. So here I'm writing the dot value from child. And HR. Now, with this C colon I am going to call that child action component. Then providing or ID. So, or ID is MSG and then parent action equals to V dot. C dot method called from child. Right, so what I did I just placed child component here in the parent component provided or ID and map this parent action with this method. So parent action you can see is available here as or action. So when you click on the button which is available on this child. Parent action will be initiated and here we are linking it with this method. And this method I'm going to define in the controller of this parent component. So this way through child component we will be calling this method. Right. So now, after this I'm going to put BRHR and P tag inside P I'm going to write parent component. And here, right and after implementation of this code, I'm going to write a code for controller for parent component. So I clicked on this controller and here I need to place this method name so you can just copy and paste it. Now here you need to find that or ID so variable child component equals to component dot find MSG and then component dot set V dot. So I'm copying this value from child putting it here. And child component dot get V dot so in child we have this attribute so I'm copying this and pasting it here. So this attribute reside in the child component this is available in parent component right so from child value of attribute will be available in the parent components attribute. So this way, this implementation is complete so here you can see this method is defined in the parent component. And here we are calling it linking it with parent action. So whenever this child component will be loaded so it will be linked automatically, and when you will be clicking on this button so that method will be executed. So now I'm going to open demo app. Where I will be placing this parent component so in demo app or you just need to place the parent component so parent action component so I'm saving this clicking on preview. Okay, so here you can see output is loaded so whatever is available in this horizontal rule is child component so if I go here and show you so here you can see. Whatever is available inside HR is the child component and before HR parent component and after HR parent component right. And here this message is written value from child component so here it is. And right now this value from child attribute is having nothing because on load it is blank. Now if I click on this button so this will be showing the message and what message it will be showing, which is available here child value for parent. So if I click on this so you can see child value for parents so this way we are calling this method which is available in the parent components controller. And for that you just need to use this on our detection type. So this is all about how you can call the methods which are defined in parent component through child component. Thank you.