With AdonisJS 6, layouts have been removed in favor of components. In this snippet, we provide a simple layout component example.
EdgeJS has fantastic support for components, which features support for state, props, slots, slot scopes, and data injection. Components allow you to define markup or functionality once, and use it throughout your app.
EdgeJS Components #6.1
Form Component Method Spoofing
In this lesson, we'll add simplified HTTP Method Spoofing functionality to our base form component. With this simplified functionality all we'll need to do is specify the desired HTTP Method to the method prop and it'll add it to our URL.
EdgeJS Components #4.2
Adding Conditional Icon, Headline, and Message Content
In this lesson, we'll make our alert's icon, headline, and message completely optional. We'll also allow our icon to be provided via slot and our headline and message via prop or slot.
Showing 1 to 20 of 31 results