Skip to content

Commit 145ca8e

Browse files
devversionjelbourn
authored andcommitted
docs(getting-started): include cdk in systemjs config (#5626)
* The getting started guide includes a brief section for the SystemJS configuration of a project using Angular Material. This extra section now also needs to include the CDK package. Fixes #5624
1 parent 557b31b commit 145ca8e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

guides/getting-started.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ For existing apps, follow these steps to begin using Angular Material.
99
npm install --save @angular/material @angular/cdk
1010
```
1111

12-
A snapshot build with the latest changes from master is also available. Note that this snapshot build should not be considered stable and may break between releases.
12+
A snapshot build with the latest changes from master is also available. Note that this snapshot
13+
build should not be considered stable and may break between releases.
1314

1415
```bash
1516
npm install --save angular/material2-builds angular/cdk-builds
@@ -134,15 +135,16 @@ Note that `md-icon` supports any font or svg icons; using Material Icons is one
134135

135136
## Appendix: Configuring SystemJS
136137

137-
If your project is using SystemJS for module loading, you will need to add `@angular/material`
138-
to the SystemJS configuration:
138+
If your project is using SystemJS for module loading, you will need to add `@angular/material` and
139+
`@angular/cdk` to the SystemJS configuration:
139140

140141
```js
141142
System.config({
142143
// existing configuration options
143144
map: {
144145
// ...
145146
'@angular/material': 'npm:@angular/material/bundles/material.umd.js',
147+
'@angular/cdk': 'npm:@angular/cdk/bundles/cdk.umd.js'
146148
// ...
147149
}
148150
});

0 commit comments

Comments
 (0)