Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0e9ccd

Browse files
docs(tutorial): move bower_components into app folder
1 parent 3f540e3 commit e0e9ccd

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

docs/content/tutorial/index.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ This command will download the following tools, into the `node_modules` director
126126
- [Protractor][protractor] - end 2 end test runner
127127

128128
Running `npm install` will also automatically use bower to download the Angular framework into the
129-
`bower_components` directory.
129+
`app/bower_components` directory.
130130

131131
<div class="alert alert-info">
132132
Note the angular-phonecat project is setup to install and run these utilities via npm scripts.

docs/content/tutorial/step_00.ngdoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ __`app/index.html`:__
4646
<head>
4747
<meta charset="utf-8">
4848
<title>My HTML File</title>
49-
<link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.css">
49+
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
5050
<link rel="stylesheet" href="css/app.css">
51-
<script src="../bower_components/angular/angular.js"></script>
51+
<script src="bower_components/angular/angular.js"></script>
5252
</head>
5353
<body>
5454

@@ -76,7 +76,7 @@ __`app/index.html`:__
7676

7777
* AngularJS script tag:
7878

79-
<script src="../bower_components/angular/angular.js">
79+
<script src="bower_components/angular/angular.js">
8080

8181
This code downloads the `angular.js` script and registers a callback that will be executed by the
8282
browser when the containing HTML page is fully downloaded. When the callback is executed, Angular
@@ -136,7 +136,8 @@ and one static binding, and our model is empty. That will soon change!
136136

137137
Most of the files in your working directory come from the [angular-seed project][angular-seed] which
138138
is typically used to bootstrap new Angular projects. The seed project is pre-configured to install
139-
the angular framework (via `bower`) and tools for developing a typical web app (via `npm`).
139+
the angular framework (via `bower` into the `app/bower_components/` folder) and tools for developing
140+
a typical web app (via `npm`).
140141

141142
For the purposes of this tutorial, we modified the angular-seed with the following changes:
142143

docs/content/tutorial/step_02.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ __`app/index.html`:__
3333
<html ng-app="phonecatApp">
3434
<head>
3535
...
36-
<script src="../bower_components/angular/angular.js"></script>
36+
<script src="bower_components/angular/angular.js"></script>
3737
<script src="js/controllers.js"></script>
3838
</head>
3939
<body ng-controller="PhoneListCtrl">

docs/content/tutorial/step_07.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ __`app/index.html`:__
120120
<html lang="en" ng-app="phonecatApp">
121121
<head>
122122
...
123-
<script src="../bower_components/angular/angular.js"></script>
124-
<script src="../bower_components/angular-route/angular-route.js"></script>
123+
<script src="bower_components/angular/angular.js"></script>
124+
<script src="bower_components/angular-route/angular-route.js"></script>
125125
<script src="js/app.js"></script>
126126
<script src="js/controllers.js"></script>
127127
</head>

docs/content/tutorial/step_11.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ __`app/index.html`.__
6565

6666
```html
6767
...
68-
<script src="../bower_components/angular-resource/angular-resource.js"></script>
68+
<script src="bower_components/angular-resource/angular-resource.js"></script>
6969
<script src="js/services.js"></script>
7070
...
7171
```

docs/content/tutorial/step_12.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ __`app/index.html`.__
9090
...
9191

9292
<!-- jQuery is used for JavaScript animations (include this before angular.js) -->
93-
<script src="../bower_components/jquery/jquery.js"></script>
93+
<script src="bower_components/jquery/jquery.js"></script>
9494

9595
...
9696

9797
<!-- required module to enable animation support in AngularJS -->
98-
<script src="../bower_components/angular-animate/angular-animate.js"></script>
98+
<script src="bower_components/angular-animate/angular-animate.js"></script>
9999

100100
<!-- for JavaScript Animations -->
101101
<script src="js/animations.js"></script>

0 commit comments

Comments
 (0)