Challenge 1

Challenges are an opportunity to test what you have learned by interacting directly with live code.

For this challenge, you will create a danger-button component using the dangerButton object.

NOTE

The component custom element has already been added to the HTML.

Solution

For this challenge, we can use global registration to create the danger-button component and pass dangerButton as the component object.

app.component('danger-button', dangerButton)