From 145ca8e8186d4541d0508eb4a109ad07063c8c44 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 10 Jul 2017 20:37:41 +0200 Subject: [PATCH] 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 --- guides/getting-started.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/guides/getting-started.md b/guides/getting-started.md index d8de32789ce..d2898102d9a 100644 --- a/guides/getting-started.md +++ b/guides/getting-started.md @@ -9,7 +9,8 @@ For existing apps, follow these steps to begin using Angular Material. npm install --save @angular/material @angular/cdk ``` -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. +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. ```bash npm install --save angular/material2-builds angular/cdk-builds @@ -134,8 +135,8 @@ Note that `md-icon` supports any font or svg icons; using Material Icons is one ## Appendix: Configuring SystemJS -If your project is using SystemJS for module loading, you will need to add `@angular/material` -to the SystemJS configuration: +If your project is using SystemJS for module loading, you will need to add `@angular/material` and +`@angular/cdk` to the SystemJS configuration: ```js System.config({ @@ -143,6 +144,7 @@ System.config({ map: { // ... '@angular/material': 'npm:@angular/material/bundles/material.umd.js', + '@angular/cdk': 'npm:@angular/cdk/bundles/cdk.umd.js' // ... } });