File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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
910npm 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
1420A snapshot build with the latest changes from master is also available. Note that this snapshot
1521build should not be considered stable and may break between releases.
1622
23+ #### NPM
1724``` bash
1825npm 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
2335Some Material components depend on the Angular animations module in order to be able to do
2436more advanced transitions. If you want these animations to work in your app, you have to
2537install the ` @angular/animations ` module and include the ` BrowserAnimationsModule ` in your app.
2638
39+ #### NPM
2740``` bash
2841npm 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.
3250If 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 ) .
You can’t perform that action at this time.
0 commit comments