Skip to content

Commit b842642

Browse files
committed
docs - stripping extra new lines
1 parent d428c99 commit b842642

File tree

75 files changed

+3
-1723
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+3
-1723
lines changed

docs/content/api/angular.service.ngdoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
@name angular.service
44
@description
55

6-
76
The services API provides objects for carrying out common web app tasks. Service objects are
87
managed by angular's {@link guide/dev_guide.di dependency injection system}.
98

10-
119
* {@link angular.service.$browser $browser } - Provides an instance of a browser object
1210
* {@link angular.service.$cookieStore $cookieStore } - Provides key / value storage backed by
1311
session cookies
@@ -27,6 +25,5 @@ server-side data sources
2725
* {@link angular.service.$window $window } - References the browsers `window` object
2826
* {@link angular.service.$xhr $xhr} - Generates an XHR request.
2927

30-
3128
For information on how angular services work and how to write your own services, see {@link
3229
guide/dev_guide.services Angular Services} in the angular Developer Guide.

docs/content/api/index.ngdoc

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
@name API Reference
33
@description
44

5-
65
## Angular Compiler API
76

8-
97
* {@link angular.widget Widgets} - Angular custom DOM element
108
* {@link angular.directive Directives} - Angular DOM element attributes
119
* {@link angular.markup Markup} and {@link angular.attrMarkup Attribute Markup}
@@ -14,59 +12,42 @@
1412
* {@link angular.validator Validators} - Angular input validators
1513
* {@link angular.compile angular.compile()} - Template compiler
1614

17-
1815
## Angular Scope API
1916

20-
2117
* {@link angular.scope Scope Object} - Angular scope object
2218

2319

24-
25-
2620
## Angular Services & Dependency Injection API
2721

28-
2922
* {@link angular.service Angular Services}
3023
* {@link angular.injector angular.injector() }
3124

3225

33-
34-
3526
## Angular Testing API
3627

37-
3828
* {@link angular.mock Testing Mocks API} - Mock objects for testing
3929
* {@link
4030
https://docs.google.com/document/d/11L8htLKrh6c92foV71ytYpiKkeKpM4_a5-9c3HywfIc/edit?hl=en_US
4131
Angular Scenario Runner} - Automated scenario testing documentation
4232

4333

44-
45-
4634
## Angular Utility Functions
4735

48-
4936
### HTML & DOM Manipulation
5037

51-
5238
* {@link angular.element angular.element()}
5339

54-
5540
### Misc
5641

57-
5842
* {@link angular.bind angular.bind() }
5943
* {@link angular.extend angular.extend() }
6044
* {@link angular.forEach angular.forEach() }
6145
* {@link angular.identity angular.identity() }
6246
* {@link angular.noop angular.noop() }
6347

6448

65-
66-
6749
## Type Identification
6850

69-
7051
* {@link angular.isArray angular.isArray() }
7152
* {@link angular.isDate angular.isDate() }
7253
* {@link angular.isDefined angular.isDefined() }
@@ -76,25 +57,18 @@ Angular Scenario Runner} - Automated scenario testing documentation
7657
* {@link angular.isString angular.isString() }
7758
* {@link angular.isUndefined angular.isUndefined() }
7859

79-
8060
## Strings
8161

82-
8362
* {@link angular.lowercase angular.lowercase() }
8463
* {@link angular.uppercase angular.uppercase() }
8564

86-
8765
### JSON
8866

89-
9067
* {@link angular.fromJson angular.fromJson() }
9168
* {@link angular.toJson angular.toJson() }
9269

9370

9471

95-
96-
97-
9872
## Utility methods for JavaScript types
9973
* {@link angular.Object Object API} - Utility functions for JavaScript objects
10074
* {@link angular.Array Array API} - Utility functions for JavaScript arrays

docs/content/cookbook/advancedform.ngdoc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
@name Cookbook: Advanced Form
44
@description
55

6-
76
Here we extend the basic form example to include common features such as reverting, dirty state
87
detection, and preventing invalid form submission.
98

10-
119
<doc:example>
1210
<doc:source>
1311
<script>
@@ -31,13 +29,11 @@ detection, and preventing invalid form submission.
3129
this.cancel();
3230
}
3331

34-
3532
UserForm.prototype = {
3633
cancel: function(){
3734
this.form = angular.copy(this.master);
3835
},
3936

40-
4137
save: function(){
4238
this.master = this.form;
4339
this.cancel();
@@ -46,19 +42,16 @@ detection, and preventing invalid form submission.
4642
</script>
4743
<div ng:controller="UserForm">
4844

49-
5045
<label>Name:</label><br/>
5146
<input type="text" name="form.name" ng:required/> <br/><br/>
5247

53-
5448
<label>Address:</label><br/>
5549
<input type="text" name="form.address.line1" size="33" ng:required/> <br/>
5650
<input type="text" name="form.address.city" size="12" ng:required/>,
5751
<input type="text" name="form.address.state" size="2" ng:required ng:validate="regexp:state"/>
5852
<input type="text" name="form.address.zip" size="5" ng:required
5953
ng:validate="regexp:zip"/><br/><br/>
6054

61-
6255
<label>Contacts:</label>
6356
[ <a href="" ng:click="form.contacts.$add()">add</a> ]
6457
<div ng:repeat="contact in form.contacts">
@@ -75,7 +68,6 @@ ng:validate="regexp:zip"/><br/><br/>
7568
<button ng:click="save()" ng:disabled="{{$invalidWidgets.visible() ||
7669
master.$equals(form)}}">Save</button>
7770

78-
7971
<hr/>
8072
Debug View:
8173
<pre>form={{form}}
@@ -104,11 +96,8 @@ master.$equals(form)}}">Save</button>
10496
</doc:example>
10597

10698

107-
108-
10999
#Things to notice
110100

111-
112101
* Cancel & save buttons are only enabled if the form is dirty — there is something to cancel or
113102
save.
114103
* Save button is only enabled if there are no validation errors on the form.

docs/content/cookbook/buzz.ngdoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
@name Cookbook: Resources - Buzz
44
@description
55

6-
76
External resources are URLs that provide JSON data, which are then rendered with the help of
87
templates. angular has a resource factory that can be used to give names to the URLs and then
98
attach behavior to them. For example you can use the
109
{@link http://code.google.com/apis/buzz/v1/getting_started.html#background-operations| Google Buzz
1110
API}
1211
to retrieve Buzz activity and comments.
1312

14-
1513
<doc:example>
1614
<doc:source>
1715
<script>

docs/content/cookbook/deeplinking.ngdoc

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,14 @@
33
@name Cookbook: Deep Linking
44
@description
55

6-
76
Deep linking allows you to encode the state of the application in the URL so that it can be
87
bookmarked and the application can be restored from the URL to the same state.
98

10-
119
While <angular/> does not force you to deal with bookmarks in any particular way, it has services
1210
which make the common case described here very easy to implement.
1311

14-
1512
# Assumptions
1613

17-
1814
Your application consists of a single HTML page which bootstraps the application. We will refer
1915
to this page as the chrome.
2016
Your application is divided into several screens (or views) which the user can visit. For example,
@@ -25,30 +21,22 @@ screen will be constructed from an HTML snippet, which we will refer to as the p
2521
have multiple partials, but a single partial is the most common construct. This example makes the
2622
partial boundary visible using a blue line.
2723

28-
2924
You can make a routing table which shows which URL maps to which partial view template and which
3025
controller.
3126

32-
3327
# Example
3428

35-
3629
In this example we have a simple app which consist of two screens:
3730

38-
3931
* Welcome: url `#` Show the user contact information.
4032
* Settings: url `#/settings` Show an edit screen for user contact information.
4133

4234

43-
44-
4535
The two partials are defined in the following URLs:
4636

47-
4837
* {@link ./examples/settings.html}
4938
* {@link ./examples/welcome.html}
5039

51-
5240
<doc:example>
5341
<doc:source>
5442
<script>
@@ -59,23 +47,20 @@ The two partials are defined in the following URLs:
5947
$route.when("/settings", {template:'./examples/settings.html', controller:SettingsCntl});
6048
$route.parent(this);
6149

62-
6350
// initialize the model to something useful
6451
this.person = {
6552
name:'anonymous',
6653
contacts:[{type:'email', url:'anonymous@example.com'}]
6754
};
6855
}
6956

70-
7157
function WelcomeCntl($route){}
7258
WelcomeCntl.prototype = {
7359
greet: function(){
7460
alert("Hello " + this.person.name);
7561
}
7662
};
7763

78-
7964
function SettingsCntl(){
8065
this.cancel();
8166
}
@@ -84,7 +69,6 @@ The two partials are defined in the following URLs:
8469
this.form = angular.copy(this.person);
8570
},
8671

87-
8872
save: function(){
8973
angular.copy(this.form, this.person);
9074
window.location.hash = "#";
@@ -117,12 +101,8 @@ The two partials are defined in the following URLs:
117101

118102

119103

120-
121-
122-
123104
# Things to notice
124105

125-
126106
* Routes are defined in the `AppCntl` class. The initialization of the controller causes the
127107
initialization of the {@link api/angular.service.$route $route} service with the proper URL
128108
routes.

docs/content/cookbook/form.ngdoc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
@name Cookbook: Form
44
@description
55

6-
76
A web application's main purpose is to present and gather data. For this reason angular strives
87
to make both of these operations trivial. This example shows off how you can build a simple form to
98
allow a user to enter data.
109

1110

12-
13-
1411
<doc:example>
1512
<doc:source>
1613
<script>
@@ -26,19 +23,16 @@ allow a user to enter data.
2623
</script>
2724
<div ng:controller="FormController" class="example">
2825

29-
3026
<label>Name:</label><br/>
3127
<input type="text" name="user.name" ng:required/> <br/><br/>
3228

33-
3429
<label>Address:</label><br/>
3530
<input type="text" name="user.address.line1" size="33" ng:required/> <br/>
3631
<input type="text" name="user.address.city" size="12" ng:required/>,
3732
<input type="text" name="user.address.state" size="2" ng:required ng:validate="regexp:state"/>
3833
<input type="text" name="user.address.zip" size="5" ng:required
3934
ng:validate="regexp:zip"/><br/><br/>
4035

41-
4236
<label>Phone:</label>
4337
[ <a href="" ng:click="user.contacts.$add()">add</a> ]
4438
<div ng:repeat="contact in user.contacts">
@@ -56,7 +50,6 @@ ng:validate="regexp:zip"/><br/><br/>
5650
<pre>user={{user}}</pre>
5751
</div>
5852

59-
6053
</doc:source>
6154
<doc:scenario>
6255
it('should show debug', function(){
@@ -69,13 +62,11 @@ ng:validate="regexp:zip"/><br/><br/>
6962
expect(binding('user')).toMatch(/you@example.org/);
7063
});
7164

72-
7365
it('should remove contact', function(){
7466
using('.example').element('a:contains(X)').click();
7567
expect(binding('user')).not().toMatch(/\(234\) 555\-1212/);
7668
});
7769

78-
7970
it('should validate zip', function(){
8071
expect(using('.example').element(':input[name=user.address.zip]').attr('className'))
8172
.not().toMatch(/ng-validation-error/);
@@ -84,7 +75,6 @@ ng:validate="regexp:zip"/><br/><br/>
8475
.toMatch(/ng-validation-error/);
8576
});
8677

87-
8878
it('should validate state', function(){
8979
expect(using('.example').element(':input[name=user.address.state]').attr('className'))
9080
.not().toMatch(/ng-validation-error/);
@@ -96,11 +86,8 @@ ng:validate="regexp:zip"/><br/><br/>
9686
</doc:example>
9787

9888

99-
100-
10189
# Things to notice
10290

103-
10491
* The user data model is initialized {@link api/angular.directive.ng:controller controller} and is
10592
available in
10693
the {@link api/angular.scope scope} with the initial data.

docs/content/cookbook/helloworld.ngdoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
@name Cookbook: Hello World
44
@description
55

6-
76
<doc:example>
87
<doc:source>
98
Your name: <input type="text" name="name" value="World"/>
@@ -19,13 +18,10 @@
1918
</doc:scenario>
2019
</doc:example>
2120

22-
2321
# Things to notice
2422

25-
2623
Take a look through the source and note:
2724

28-
2925
* The script tag that {@link guide/dev_guide.bootstrap bootstraps} the angular environment.
3026
* The text {@link api/angular.widget.HTML input widget} which is bound to the greeting name text.
3127
* No need for listener registration and event firing on change events.

0 commit comments

Comments
 (0)