浏览代码

Update teleport.md (#2525)

Changed `x-template` to `x-teleport` as `x-template` is not a directive and the line talks about `x-teleport`'s selector.
Sumanyu Aggarwal 3 年之前
父节点
当前提交
4766d17330
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/docs/src/en/directives/teleport.md

+ 1 - 1
packages/docs/src/en/directives/teleport.md

@@ -18,7 +18,7 @@ This is useful for things like modals (especially nesting them), where it's help
 
 By attaching `x-teleport` to a `<template>` element, you are telling Alpine to "append" that element to the provided selector.
 
-> The `x-template` selector can be any string you would normally pass into something like `document.querySelector`. It will find the first element that matches, be it a tag name (`body`), class name (`.my-class`), ID (`#my-id`), or any other valid CSS selector.
+> The `x-teleport` selector can be any string you would normally pass into something like `document.querySelector`. It will find the first element that matches, be it a tag name (`body`), class name (`.my-class`), ID (`#my-id`), or any other valid CSS selector.
 
 [→ Read more about `document.querySelector`](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector)