Created
October 13, 2019 17:44
-
-
Save siddharthpal/6a97a0089aefe82321840e0443856580 to your computer and use it in GitHub Desktop.
Invoking custom element method
This file contains 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
const todoAngularElement = document.getElementsByTagName("todo-root-angular-element")[0]; | |
if (todoAngularElement) { | |
todoAngularElement.pushTodoItem(newTodo); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment