Created
September 22, 2017 01:02
-
-
Save aloha1003/df7bc8cb717a3544b1997bd188f7f862 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getComponent(vm, tagName){ | |
for (var i = 0; i < vm.$children.length; i++) { | |
if (vm.$children[i].$options.name == tagName) { | |
return vm.$children[i]; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment