You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By now, we declare an object to represent some Vue component controller. In some cases, it leads to unpleasant experiences. In addition, documenting Vue component controllers as function will make clearer how exactly to import the components used on the example.
{title: 'Default Button',controller: function(){const{ pdButton }=myComponentsLib;// Make clearer where the component comes fromreturn{components: {
pdButton
},methods: {onClick(){window.alert("Clicked!");}};}},template: ` <pd-button :on-click="onClick"> Click Here </pd-button>`}
The text was updated successfully, but these errors were encountered:
By now, we declare an object to represent some Vue component controller. In some cases, it leads to unpleasant experiences. In addition, documenting Vue component controllers as function will make clearer how exactly to import the components used on the example.
How it is currently done:
How it should be done:
The text was updated successfully, but these errors were encountered: