You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GETTING_STARTED.md
+16-96Lines changed: 16 additions & 96 deletions
Original file line number
Diff line number
Diff line change
@@ -1,127 +1,48 @@
1
-
This guide will take you through building your first project with Angular Material 2. We'll be using
2
-
the Angular CLI, but you can also accomplish this with other build tools like Webpack or Gulp.
1
+
Get started with Angular Material 2 using the Angular CLI.
3
2
4
-
### Globally install the CLI
3
+
##Install the CLI
5
4
6
5
```bash
7
-
npm install -g angular-cli
6
+
npm install -g angular-cli@webpack
8
7
```
9
8
10
-
###Create a new project
9
+
## Create a new project
11
10
12
11
```bash
13
12
ng new my-project
14
13
```
15
-
16
-
This will create a starter repo under the name you specified with the files and folders
17
-
you'd need for any Angular 2 app: a root component, a main.ts to bootstrap your root component, an
18
-
index.html, etc. It also sets up build rules to transpile your Typescript into Javascript and sets
19
-
some initial config for the SystemJS module loader.
20
-
21
-
### Install Angular Material 2 components
22
14
23
-
Now that your project has been created, you can install any Angular Material 2 components you'd like
24
-
to use through npm. You can see our [list of published packages here](https://www.npmjs.com/~angular2-material).
15
+
The new command creates a project with a build system for your Angular app.
16
+
17
+
## Install Angular Material 2 components
18
+
19
+
Angular Material 2 components are set up in separate modules. This allows you to only pull into your app what you need, reducing the size of your app. Components are installed individually. You can see our [list of published packages here](https://www.npmjs.com/~angular2-material).
25
20
26
21
Note that only packages published under the `@latest` npm tag are officially released.
0 commit comments