Skip to content

Commit de3c927

Browse files
authored
Adding yarn option
Some developers may wish to use Yarn instead of npm, so I have added yarn alternative scripts.
1 parent c3d7cd9 commit de3c927

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

guides/getting-started.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,47 @@ For existing apps, follow these steps to begin using Angular Material.
55

66
### Step 1: Install Angular Material and Angular CDK
77

8+
#### NPM
89
```bash
910
npm install --save @angular/material @angular/cdk
1011
```
12+
#### Yarn
13+
```bash
14+
yarn add @angular/material @angular/cdk
15+
```
16+
1117

1218
#### Alternative: Snapshot Build
1319

1420
A snapshot build with the latest changes from master is also available. Note that this snapshot
1521
build should not be considered stable and may break between releases.
1622

23+
#### NPM
1724
```bash
1825
npm install --save angular/material2-builds angular/cdk-builds
1926
```
2027

28+
#### Yarn
29+
```bash
30+
yarn add angular/material2-builds angular/cdk-builds
31+
```
32+
2133
### Step 2: Animations
2234

2335
Some Material components depend on the Angular animations module in order to be able to do
2436
more advanced transitions. If you want these animations to work in your app, you have to
2537
install the `@angular/animations` module and include the `BrowserAnimationsModule` in your app.
2638

39+
#### NPM
2740
```bash
2841
npm install --save @angular/animations
2942
```
3043

44+
#### Yarn
45+
```bash
46+
yarn install @angular/animationa
47+
```
48+
3149
**Note:** `@angular/animations` uses the WebAnimation API that isn't supported by all browsers yet.
3250
If you want to support Material component animations in these browsers, you'll have to
3351
[include a polyfill](https://github.com/web-animations/web-animations-js).

0 commit comments

Comments
 (0)