mirror of
https://github.com/archtechx/alpine-typescript.git
synced 2026-02-04 10:44:04 +00:00
Update README.md for alpine3
This commit is contained in:
parent
2c372c4063
commit
c492d48ecb
1 changed files with 7 additions and 1 deletions
|
|
@ -199,7 +199,11 @@ component('search', Search);
|
|||
|
||||
import 'alpinejs';
|
||||
```
|
||||
|
||||
**For alpine3 use:**
|
||||
```ts
|
||||
import Alpine from 'alpinejs';
|
||||
Alpine.start()
|
||||
```
|
||||
</details>
|
||||
|
||||
**`app.ts` highlights:**
|
||||
|
|
@ -376,3 +380,5 @@ export default class Search extends AlpineComponent {
|
|||
- We call the component in `x-data`
|
||||
- We use both the constructor and `init`. The constructor cannot access magic properties, `init` can.
|
||||
- We can still use Alpine syntax in the template with no issues
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue