Put ref=”childComponent” on the child component’s instance in the parent component and access it from that ref’s method like this: <childcomponent ref=”childComponent” /> var self=this; self.$refs.chldComponent.<method>
Author: jainpinkesh
VueJS: Unknown custom element
Unknown custom element: – did you register the component correctly? For recursive components, make sure to provide the “name” option. When declaring child component in the components section of the export in the parent component, explicitly specify the name like this: export { components :{ myComponent: MyComponent }, data(){ return {}; }
VueJS: Pass data from child component to parent component.
Create prop in child component: props: { childDataProp: { type: Array, default () => []}} Create a data variable: data(){ return {childData:[]};} Populate value for the data variable created above. childData = [1,2,3,4,5]; Use $emit to expose an event as the first argument and data as the second argument: this.$emit(‘eventName’,childData); In Parent Component: a. In…
Economics – 12th HSC
Economics Economics Pinkesh Jain Welcome! Click a word in the puzzle to get started. Solve OK Cancel Congratulations! You have completed this crossword puzzle. Check puzzle
Thoughts and It’s effects
I recently read a classic book “As A Man Thinketh” by James Allen. The ideas in this book are so simple that anyone can relate to this book. The particular section that caught my attention and got me thinking is how one’s thoughts have effects on his conditions. It says that the thoughts transforms into…
Aadhar card: A digital revolution or an Environmental nightmare
Aadhar Card: So, this morning, I was in the process of opening a bank account. The great thing about India is the bank associates come to your home and collect all the documents. Having a printer/scanner/copier comes in very handy as you can just get a copy and give it to the associate. While opening…
Millions of dollars over 6 ounces of air pressure!
I do not doubt that Brady told his equipment managers that he likes them on the softer side, but that is a FAR CRY from telling them that he wanted them UNDER LEGAL PSI. The equipment managers MAY have gotten some balls under the limit, but that is a FAR CRY from intentionally under-inflating below…
HICKERY – xcopy Command
Tired of all the prompts while copying files? Here is a better/efficient way to copy files around. This command is especially helpful when copying tens of gigabytes of files, for example backing up your c drive into an external hard drive. Here we have some files in the source folder: You can use the following…
Astrology – a pseudoscience
Inspect every piece of pseudoscience and you will find a security blanket, a thumb to suck, a skirt to hold. What have we to offer in exchange? Uncertainty! Insecurity! -Isaac Asimov in the issue of The Skeptical Inquirer The term pseudoscience means “a collection of beliefs or practices mistakenly regarded as being based on scientific…