3.4 Button component
Last updated
Last updated
Just like in the case of the Select control, the statement <button md-button="disabled.bind: disabled;" click.trigger="showToast()">Materialize Button</button>
results with the instantiation of the button:
Image 1
Observe that the button control, just like the select control are HTML native elements and that Materialize Aurelia bridge adds custom attributes (md-button
) that are bound to Materialize button) "matching native properties" . Note also the definition of the event triggers that are activating the code in the view model:
Finally, add the new component to your router-configuration:
app.js