A Pro subscription is required to watch this lesson.

In this Larabit, I'll show you three new features released recently in the Alpine.js framework. The plugin Portal was merged into the main framework as the x-teleport directive and lets you move blocks of code outside your Alpine state area. Speaking of state, $data lets you pass the current Alpine state object as a function argument.

The x-teleport directiveThe magic $id elementPassing in state through $data

Would you like to hear from Laracasts by email occasionally?