mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 03:30:02 +08:00
docs(tutorial): clarify bower usage
This commit is contained in:
@@ -37,30 +37,33 @@ We are using [Bower][bower] to install client side dependencies. This step upda
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"angular": "1.2.x",
|
||||
"angular-mocks": "~1.2.15",
|
||||
"angular-mocks": "~1.2.x",
|
||||
"bootstrap": "~3.1.1",
|
||||
"angular-route": "~1.2.15",
|
||||
"angular-resource": "~1.2.15",
|
||||
"angular-route": "~1.2.x",
|
||||
"angular-resource": "~1.2.x",
|
||||
"jquery": "1.10.2",
|
||||
"angular-animate": "~1.2.15"
|
||||
"angular-animate": "~1.2.x"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
* `"angular-animate": "~1.2.15"` tells bower to install a version of the
|
||||
angular-animate component that is compatible with version 1.2.15.
|
||||
* `"angular-animate": "~1.2.x"` tells bower to install a version of the
|
||||
angular-animate component that is compatible with version 1.2.x.
|
||||
* `"jquery": "1.10.2"` tells bower to install the 1.1.2 version of JQuery. Note that this is not an
|
||||
Angular library, it is the standard JQuery library. We can use bower to install a wide range of 3rd
|
||||
party libraries.
|
||||
|
||||
We must tell bower to download and install these dependencies. If you have bower installed globally
|
||||
then you can run `bower install` but for this project we have preconfigured npm to run bower install
|
||||
for us:
|
||||
We must ask bower to download and install this dependency. We can do this by running:
|
||||
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
<div class="alert alert-info">
|
||||
If you have bower installed globally then you can run `bower install` but for this project we have
|
||||
preconfigured `npm install` to run bower for us.
|
||||
</div>
|
||||
|
||||
|
||||
## How Animations work with `ngAnimate`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user