Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5aaf98d

Browse files
gogotanakapetebacondarwin
authored andcommitted
docs(CHANGELOG & CONTRIBUTING): fix trivial formatting
Closes #6407
1 parent d5a92d2 commit 5aaf98d

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

CHANGELOG.md

+20-16
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ app. This is no longer possible within a single module.
142142

143143

144144
- **ngModelOptions:** due to [adfc322b](https://github.com/angular/angular.js/commit/adfc322b04a58158fb9697e5b99aab9ca63c80bb),
145-
145+
146146

147147
This commit changes the API on `NgModelController`, both semantically and
148148
in terms of adding and renaming methods.
@@ -914,26 +914,30 @@ The animation mock module has been renamed from `mock.animate` to `ngAnimateMock
914914
## Breaking Changes
915915

916916
- **$http:** due to [e1cfb195](https://github.com/angular/angular.js/commit/e1cfb1957feaf89408bccf48fae6f529e57a82fe),
917-
it is now necessary to separately specify default HTTP headers for PUT, POST and PATCH requests, as these no longer share a single object.
917+
it is now necessary to seperately specify default HTTP headers for PUT, POST and PATCH requests, as these no longer share a single object.
918918

919-
To migrate your code, follow the example below:
919+
To migrate your code, follow the example below:
920920

921-
Before:
921+
Before:
922922

923-
// Will apply to POST, PUT and PATCH methods
924-
$httpProvider.defaults.headers.post = {
925-
"X-MY-CSRF-HEADER": "..."
926-
};
923+
```
924+
// Will apply to POST, PUT and PATCH methods
925+
$httpProvider.defaults.headers.post = {
926+
"X-MY-CSRF-HEADER": "..."
927+
};
928+
```
927929

928-
After:
930+
After:
929931

930-
// POST, PUT and PATCH default headers must be specified separately,
931-
// as they do not share data.
932-
$httpProvider.defaults.headers.post =
933-
$httpProvider.defaults.headers.put =
934-
$httpProviders.defaults.headers.patch = {
935-
"X-MY-CSRF-HEADER": "..."
936-
};
932+
```
933+
// POST, PUT and PATCH default headers must be specified seperately,
934+
// as they do not share data.
935+
$httpProvider.defaults.headers.post =
936+
$httpProvider.defaults.headers.put =
937+
$httpProviders.defaults.headers.patch = {
938+
"X-MY-CSRF-HEADER": "..."
939+
};
940+
```
937941

938942
<a name="1.2.8"></a>
939943
# 1.2.8 interdimensional-cartography (2014-01-10)

CONTRIBUTING.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ project.
4444

4545

4646
## <a name="docs"></a> Want a Doc Fix?
47-
If you want to help improve the docs, it's a good idea to let others know what you're working on to
48-
minimize duplication of effort. Before starting, check out the issue queue for [Milestone:Docs Only](https://github.com/angular/angular.js/issues?milestone=24&state=open).
47+
If you want to help improve the docs, it's a good idea to let others know what you're working on to
48+
minimize duplication of effort. Before starting, check out the issue queue for
49+
[Milestone:Docs Only](https://github.com/angular/angular.js/issues?milestone=24&state=open).
4950
Comment on an issue to let others know what you're working on, or create a new issue if your work
5051
doesn't fit within the scope of any of the existing doc fix projects.
5152

0 commit comments

Comments
 (0)