Skip to content

Commit c49a452

Browse files
LinusBorgmohdshakirdsanders11
authored
Merge docs updates into master (#224)
* Update installation.md (#218) Added .com TLD to CDN URL * Fix typos in docs (#219) * Fix typos in docs * Fix typos Co-authored-by: Mohd Shakir Zakaria <[email protected]> Co-authored-by: David Sanders <[email protected]>
1 parent d091c95 commit c49a452

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/api/portal.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Wrap any content that you want to render somewhere else in a `<Portal>` componen
1717
target-el="#target"
1818
:disabled="isDisabled"
1919
>
20-
<p>This coonent will be sent through the portal</p>
20+
<p>This content will be sent through the portal</p>
2121
</portal>
2222
```
2323

@@ -29,7 +29,7 @@ Wrap any content that you want to render somewhere else in a `<Portal>` componen
2929
| --------- | -------- | ------- |
3030
| `Boolean` | no | `false` |
3131

32-
When `true`, the slot content will _not_ be send through the portal to the defined PortalTarget.
32+
When `true`, the slot content will _not_ be sent through the portal to the defined PortalTarget.
3333

3434
Instead, it will be rendered in place:
3535

@@ -156,7 +156,7 @@ It has a (more useful) counterpart in the `<portal-target>` component
156156

157157
<!-- prettier-ignore -->
158158
```html
159-
<div class="vue-portal"><p>This scoped slot content is disabled</p></div>
159+
<div class="vue-portal"><p>This scoped slot content is disabled!</p></div>
160160
```
161161

162162
### `tag`

docs/guide/installation.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ PortalVue is available through a couple of CDNs, I recommend
3737
Just include the script tag _after_ the one of Vue.js
3838

3939
```html
40-
<scipt src="http://unpkg/vue/dist/vue.js"></scipt>
40+
<script src="http://unpkg.com/vue/dist/vue.js"></script>
4141
<script src="http://unpkg.com/portal-vue"></script>
4242
```
4343

@@ -113,16 +113,16 @@ When including Portal-vue from a CDN, make sure you get one of the of UMD builds
113113

114114
**About CDNs**: `unpkg.com` and `jsdelivr.com` will load the umd lib automatically.
115115

116-
If you include it form other sources directly in you HTML, make sure to import `portal-vue/dist/portal-vue.umd.min.js`
116+
If you include it from other sources directly in your HTML, make sure to import `portal-vue/dist/portal-vue.umd.min.js`
117117

118118
### Commonjs
119119

120-
This is the defaulf main file of the package.
120+
This is the default main file of the package.
121121

122-
Webpack 1 doesn't support commonjs, neither do some dev tools, like jest don't either. So this is a sensible default to use.
122+
Webpack 1 doesn't support commonjs, neither do some dev tools, like jest doesn't either. So this is a sensible default to use.
123123

124124
### ESM
125125

126126
Webpack >=2, rollup and parcel all can natively understand ESModules, so this is the best build to use with those bundlers.
127127

128-
The ESM version is marked as the default export of `package.json` for consumers that understand the `"module"` field in `package.json` (which is true for all the aforementioned bundlers), so doing `import PortalVue from 'portal-vue'` will automatically give your the ESM build if the bundler supports it.
128+
The ESM version is marked as the default export of `package.json` for consumers that understand the `"module"` field in `package.json` (which is true for all the aforementioned bundlers), so doing `import PortalVue from 'portal-vue'` will automatically give you the ESM build if the bundler supports it.

0 commit comments

Comments
 (0)