Skip to content

Instantly share code, notes, and snippets.

@liamegan
Last active March 20, 2018 21:40
Show Gist options
  • Save liamegan/4708ce3df2a1702c5be7944dbc8259ea to your computer and use it in GitHub Desktop.
Save liamegan/4708ce3df2a1702c5be7944dbc8259ea to your computer and use it in GitHub Desktop.
Tools to use to debug and capture issues during website preflight.
// To find all of the controllers on a page and output their values.
document.querySelectorAll('[data-controller]').forEach((node)=> { console.log(node.dataset['controller']) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment