diff --git a/docs_app/content/guide/installation.md b/docs_app/content/guide/installation.md index 6fd54b68b0..3bcae51dec 100644 --- a/docs_app/content/guide/installation.md +++ b/docs_app/content/guide/installation.md @@ -1,6 +1,6 @@ # Installation Instructions -Here are different ways you can install RxJs: +Here are different ways you can install RxJS: ## ES6 via npm @@ -8,31 +8,32 @@ Here are different ways you can install RxJs: npm install rxjs ``` -To import the entire core set of functionality: +To import only what you need: -```js -import * as rxjs from 'rxjs'; +```ts +import { of } from 'rxjs'; +import { map } from 'rxjs/operators'; -rxjs.of(1, 2, 3); +of(1, 2, 3).pipe(map(x => x + '!!!')); // etc ``` -To import only what you need using pipeable operators: +* See [Pipeable Operators](/guide/v6/pipeable-operators) for more information. -```js -import { of } from 'rxjs'; -import { map } from 'rxjs/operators'; +To import the entire core set of functionality: -of(1,2,3).pipe(map(x => x + '!!!')); // etc +```ts +import * as rxjs from 'rxjs'; + +rxjs.of(1, 2, 3); ``` -* See [Pipeable Operator Documentation](https://github.com/ReactiveX/rxjs/blob/91088dae1df097be2370c73300ffa11b27fd0100/doc/pipeable-operators.md) for more information about pipeable operator. -To use with globally imported bundle: +To use with a globally imported bundle: ```js const { of } = rxjs; const { map } = rxjs.operators; -of(1,2,3).pipe(map(x => x + '!!!')); // etc +of(1, 2, 3).pipe(map(x => x + '!!!')); // etc ``` ## CommonJS via npm @@ -65,7 +66,7 @@ npm install @reactivex/rxjs@5.0.0-beta.1 ## CDN -For CDN, you can use [unpkg](https://unpkg.com/). Just replace version with the current version on the link below: +For CDN, you can use [unpkg](https://unpkg.com/). Just replace *version* with the current version on the link below: For RxJS 5.0.0-beta.1 through beta.11: [https://unpkg.com/@reactivex/rxjs@version/dist/global/Rx.umd.js](https://unpkg.com/@reactivex/rxjs@version/dist/global/Rx.umd.js)