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
{{ message }}
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
These packages are maintained and installed with the Node Package Manager (<a href="https://docs.npmjs.com/" target="_blank">npm</a>).
6
6
.l-sub-section
7
7
:marked
8
-
Node.js and npm are essential to Angular development.
9
-
8
+
Node.js and npm are essential to Angular development.
9
+
10
10
<a href="https://docs.npmjs.com/getting-started/installing-node" target="_blank" title="Installing Node.js and updating npm">
11
11
Get them now</a> if they're not already installed on your machine.
12
-
12
+
13
13
**Verify that you are running node `v4.x.x` or higher and npm `3.x.x` or higher**
14
14
by running the commands `node -v` and `npm -v` in a terminal/console window.
15
15
Older versions produce errors.
16
16
17
-
We recommend [nvm](https://github.com/creationix/nvm) for managing multiple versions of node and npm. You may need [nvm](https://github.com/creationix/nvm) if you already have projects running on your machine that use other versions of node and npm.
17
+
Consider using [nvm](https://github.com/creationix/nvm) for managing multiple
18
+
versions of node and npm. You may need [nvm](https://github.com/creationix/nvm) if
19
+
you already have projects running on your machine that use other versions of node and npm.
18
20
19
21
:marked
20
-
We recommend a comprehensive starter-set of packages as specified in the `dependencies` and `devDependencies`
21
-
sections of the <a href="https://docs.npmjs.com/files/package.json" target="_blank">package.json</a> file
22
-
installed as described during [Setup](setup.html).
23
-
:marked
24
-
You can use other packages but we recommend *this particular set* to start with because (a) they work well together and
25
-
(b) they include everything you'll need to build and run the sample applications in this series.
22
+
During [Setup](setup.html), a <a href="https://docs.npmjs.com/files/package.json" target="_blank">package.json</a>
23
+
file is installed with a comprehensive starter set of
24
+
packages as specified in the `dependencies` and `devDependencies` sections.
25
+
26
+
You can use other packages but the packages in _this particular set_ work well together and include
27
+
everything you need to build and run the sample applications in this series.
28
+
26
29
.l-sub-section
27
30
:marked
28
31
Note: A cookbook or guide page may require an additional library such as *jQuery*.
29
32
:marked
30
-
You'll install more than you need for QuickStart.
31
-
No worries!
33
+
You'll install more than you need for the QuickStart guide.
34
+
No worries!
32
35
You only serve to the client those packages that the application actually requests.
33
-
36
+
34
37
This page explains what each package does. You can make substitutions later to suit your tastes and experience.
35
-
38
+
36
39
.l-main-section
37
40
:marked
38
41
## *dependencies* and *devDependencies*
39
-
The `package.json` includes two sets of packages,
42
+
The `package.json` includes two sets of packages,
40
43
[dependencies](#dependencies) and [devDependencies](#dev-dependencies).
41
-
42
-
The *dependencies* are essential to *running* the application.
43
-
The *devDependencies* are only necessary to *develop* the application.
44
+
45
+
The *dependencies* are essential to *running* the application.
46
+
The *devDependencies* are only necessary to *develop* the application.
44
47
You can exclude them from production installations by adding `--production` to the install command, as follows:
45
48
code-example(format="."language="bash").
46
49
npm install my-application --production
47
-
50
+
48
51
a(id="dependencies")
49
52
.l-main-section
50
53
:marked
51
54
## *dependencies*
52
55
The `dependencies` section of `package.json` contains:
53
-
54
-
* ***Features*** - Feature packages give the application framework and utility capabilities.
55
-
56
-
* ***Polyfills*** - Polyfills plug gaps in the browser's JavaScript implementation.
57
-
58
-
* ***Other*** - Other libraries that support the application such as `bootstrap` for HTML widgets and styling.
59
-
56
+
57
+
* ***Features***: Feature packages give the application framework and utility capabilities.
58
+
59
+
* ***Polyfills***: Polyfills plug gaps in the browser's JavaScript implementation.
60
+
61
+
* ***Other***: Other libraries that support the application such as `bootstrap` for HTML widgets and styling.
62
+
60
63
.l-main-section
61
64
:marked
62
65
### Feature Packages
63
-
64
-
***@angular/core*** - Critical runtime parts of the framework needed by every application.
66
+
67
+
***@angular/core***: Critical runtime parts of the framework needed by every application.
65
68
Includes all metadata decorators, `Component`, `Directive`, dependency injection, and the component lifecycle hooks.
66
-
67
-
***@angular/common*** - The commonly needed services, pipes, and directives provided by the Angular team.
It understands templates and can convert them to code that makes the application run and render.
71
74
Typically you don’t interact with the compiler directly; rather, you use it indirectly via `platform-browser-dynamic` or the offline template compiler.
72
-
73
-
***@angular/platform-browser*** - Everything DOM and browser related, especially the pieces that help render into DOM.
74
-
This package also includes the bootstrapStatic method for bootstrapping applications for production builds that pre-compile templates offline.
75
-
76
-
***@angular/platform-browser-dynamic*** - Includes [Providers](../api/core/index/Provider-type-alias.html) and a [bootstrap](ngmodule.html#bootstrap) method for applications that
75
+
76
+
***@angular/platform-browser***: Everything DOM and browser related, especially
77
+
the pieces that help render into the DOM.
78
+
This package also includes the `bootstrapStatic()` method
79
+
for bootstrapping applications for production builds that pre-compile templates offline.
80
+
81
+
***@angular/platform-browser-dynamic***: Includes [Providers](../api/core/index/Provider-type-alias.html)
82
+
and a [bootstrap](ngmodule.html#bootstrap) method for applications that
77
83
compile templates on the client. Don’t use offline compilation.
78
84
Use this package for bootstrapping during development and for bootstrapping plunker samples.
79
-
80
-
***@angular/http*** - Angular's http client.
81
-
82
-
***@angular/router*** - Component router.
83
-
84
-
***@angular/upgrade*** - Set of utilities for upgrading AngularJS applications to Angular.
85
-
86
-
***[system.js](https://github.com/systemjs/systemjs)*** - A dynamic module loader compatible with the
85
+
86
+
***@angular/http***: Angular's HTTP client.
87
+
88
+
***@angular/router***: Component router.
89
+
90
+
***@angular/upgrade***: Set of utilities for upgrading AngularJS applications to Angular.
91
+
92
+
***[system.js](https://github.com/systemjs/systemjs)***: A dynamic module loader compatible with the
0 commit comments