Skip to content

Commit 249cd8c

Browse files
Foxandxssmhevery
authored andcommitted
docs(aio): remove _blank target (angular#16205)
1 parent d1fb066 commit 249cd8c

23 files changed

+139
-95
lines changed

aio/content/guide/aot-compiler.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ the components and templates must be converted to executable JavaScript by the _
4343

4444
<div class="l-sub-section">
4545

46-
<a href="https://www.youtube.com/watch?v=kW9cJsvcsGo" target="_blank">Watch compiler author Tobias Bosch explain the Angular Compiler</a> at AngularConnect 2016.
46+
<a href="https://www.youtube.com/watch?v=kW9cJsvcsGo">Watch compiler author Tobias Bosch explain the Angular Compiler</a> at AngularConnect 2016.
4747

4848
</div>
4949

@@ -582,7 +582,7 @@ Now AOT-compile the app and launch it with the `lite-server`:
582582

583583
It's fascinating to see what the generated JavaScript bundle looks like after Rollup.
584584
The code is minified, so you won't learn much from inspecting the bundle directly.
585-
But the <a href="https://github.com/danvk/source-map-explorer/blob/master/README.md" target="_blank">source-map-explorer</a>
585+
But the <a href="https://github.com/danvk/source-map-explorer/blob/master/README.md">source-map-explorer</a>
586586
tool can be quite revealing.
587587

588588
Install it:
@@ -601,7 +601,8 @@ The `source-map-explorer` analyzes the source map generated with the bundle and
601601
showing exactly which application and Angular modules and classes are included in the bundle.
602602

603603
Here's the map for _Tour of Heroes_.
604-
<a href="assets/images/guide/aot-compiler/toh-pt6-bundle.png" target="_blank" title="View larger image">
604+
605+
<a href="assets/images/guide/aot-compiler/toh-pt6-bundle.png" title="View larger image">
605606
<figure class='image-display'>
606607
<img src="assets/images/guide/aot-compiler/toh-pt6-bundle.png" alt="toh-pt6-bundle"></img>
607608
</figure>

aio/content/guide/architecture.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ An Angular module, whether a _root_ or _feature_, is a class with an `@NgModule`
9191
Decorators are functions that modify JavaScript classes.
9292
Angular has many decorators that attach metadata to classes so that it knows
9393
what those classes mean and how they should work.
94-
<a href="https://medium.com/google-developers/exploring-es7-decorators-76ecb65fb841#.x5c2ndtx0" target="_blank">
94+
<a href="https://medium.com/google-developers/exploring-es7-decorators-76ecb65fb841#.x5c2ndtx0">
9595
Learn more</a> about decorators on the web.
9696

9797
</div>
@@ -169,7 +169,7 @@ Other JavaScript modules use *import statements* to access public objects from o
169169

170170

171171

172-
<a href="http://exploringjs.com/es6/ch_modules.html" target="_blank">Learn more about the JavaScript module system on the web.</a>
172+
<a href="http://exploringjs.com/es6/ch_modules.html">Learn more about the JavaScript module system on the web.</a>
173173

174174
</div>
175175

@@ -759,4 +759,4 @@ by implementing the lifecycle hook interfaces.
759759

760760

761761
> [**Testing**](guide/testing): Run unit tests on your application parts as they interact with the Angular framework
762-
using the _Angular Testing Platform_.
762+
using the _Angular Testing Platform_.

aio/content/guide/browser-support.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ Angular supports most recent browsers. This includes the following specific vers
202202

203203

204204
Angular's continuous integration process runs unit tests of the framework on all of these browsers for every pull request,
205-
using <a href="https://saucelabs.com/" target="_blank">SauceLabs</a> and
206-
<a href="https://www.browserstack.com" target="_blank">Browserstack</a>.
205+
using <a href="https://saucelabs.com/">SauceLabs</a> and
206+
<a href="https://www.browserstack.com">Browserstack</a>.
207207

208208

209209
</div>
@@ -353,7 +353,7 @@ Here are the features which may require additional polyfills:
353353
<tr style="vertical-align: top">
354354

355355
<td>
356-
<a href="../api/common/index/DatePipe-pipe.html" target="_blank">Date</a> <span>, </span> <a href="../api/common/index/CurrencyPipe-pipe.html" target="_blank">currency</a> <span>, </span> <a href="../api/common/index/DecimalPipe-pipe.html" target="_blank">decimal</a> <span> and </span> <a href="../api/common/index/PercentPipe-pipe.html" target="_blank">percent</a> <span> pipes</span>
356+
<a href="../api/common/index/DatePipe-pipe.html">Date</a> <span>, </span> <a href="../api/common/index/CurrencyPipe-pipe.html">currency</a> <span>, </span> <a href="../api/common/index/DecimalPipe-pipe.html">decimal</a> <span> and </span> <a href="../api/common/index/PercentPipe-pipe.html">percent</a> <span> pipes</span>
357357
</td>
358358

359359
<td>
@@ -371,7 +371,7 @@ Here are the features which may require additional polyfills:
371371
<tr style="vertical-align: top">
372372

373373
<td>
374-
<a href="../api/common/index/NgClass-directive.html" target="_blank">NgClass</a> <span> on SVG elements</span>
374+
<a href="../api/common/index/NgClass-directive.html">NgClass</a> <span> on SVG elements</span>
375375
</td>
376376

377377
<td>
@@ -433,7 +433,7 @@ Below are the polyfills which are used to test the framework itself. They are a
433433
<tr>
434434

435435
<td>
436-
<a id='core-es6' href="/zloirock/core-js" target="_blank">ES6</a>
436+
<a id='core-es6' href="/zloirock/core-js">ES6</a>
437437
</td>
438438

439439
<td>
@@ -449,7 +449,7 @@ Below are the polyfills which are used to test the framework itself. They are a
449449
<tr>
450450

451451
<td>
452-
<a id='classlist' href="/eligrey/classList.js" target="_blank">classList</a>
452+
<a id='classlist' href="/eligrey/classList.js">classList</a>
453453
</td>
454454

455455
<td>
@@ -465,7 +465,7 @@ Below are the polyfills which are used to test the framework itself. They are a
465465
<tr>
466466

467467
<td>
468-
<a id='intl' href="/andyearnshaw/Intl.js" target="_blank">Intl</a>
468+
<a id='intl' href="/andyearnshaw/Intl.js">Intl</a>
469469
</td>
470470

471471
<td>
@@ -481,7 +481,7 @@ Below are the polyfills which are used to test the framework itself. They are a
481481
<tr>
482482

483483
<td>
484-
<a id='web-animations' href="/web-animations/web-animations-js" target="_blank">Web Animations</a>
484+
<a id='web-animations' href="/web-animations/web-animations-js">Web Animations</a>
485485
</td>
486486

487487
<td>
@@ -497,7 +497,7 @@ Below are the polyfills which are used to test the framework itself. They are a
497497
<tr>
498498

499499
<td>
500-
<a id='typedarray' href="/inexorabletash/polyfill/blob/master/typedarray.js" target="_blank">Typed Array</a>
500+
<a id='typedarray' href="/inexorabletash/polyfill/blob/master/typedarray.js">Typed Array</a>
501501
</td>
502502

503503
<td>
@@ -513,7 +513,7 @@ Below are the polyfills which are used to test the framework itself. They are a
513513
<tr>
514514

515515
<td>
516-
<a id='blob' href="/eligrey/Blob.js" target="_blank">Blob</a>
516+
<a id='blob' href="/eligrey/Blob.js">Blob</a>
517517
</td>
518518

519519
<td>
@@ -529,7 +529,7 @@ Below are the polyfills which are used to test the framework itself. They are a
529529
<tr>
530530

531531
<td>
532-
<a id='formdata' href="/francois2metz/html5-formdata" target="_blank">FormData</a>
532+
<a id='formdata' href="/francois2metz/html5-formdata">FormData</a>
533533
</td>
534534

535535
<td>
@@ -547,4 +547,4 @@ Below are the polyfills which are used to test the framework itself. They are a
547547

548548

549549
\* Figures are for minified and gzipped code,
550-
computed with the <a href="http://closure-compiler.appspot.com/home" target="_blank">closure compiler</a>.
550+
computed with the <a href="http://closure-compiler.appspot.com/home">closure compiler</a>.

aio/content/guide/cb-index.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@title
2+
Cookbook
3+
4+
@intro
5+
A collection of recipes for common Angular application scenarios.
6+
7+
@description
8+
9+
10+
The *Cookbook* offers answers to common implementation questions.
11+
12+
Each cookbook page is a collection of recipes focused on a particular Angular feature or application challenge
13+
such as data binding, cross-component interaction, and communicating with a remote server via HTTP.
14+
15+
16+
<div class="l-sub-section">
17+
18+
19+
20+
The cookbook is just getting started. Many more recipes are on the way.
21+
22+
23+
</div>
24+
25+
26+
27+
Each cookbook links to a live sample with every recipe included.
28+
29+
Recipes are deliberately brief and code-centric.
30+
Each recipe links to a relevant page of the [Developer Guide](guide) or the
31+
[API Reference](api) where you can learn more about
32+
the purpose, context, and design choices behind the code snippets.
33+
34+
## Feedback
35+
36+
Post *documentation* requests and comments as
37+
<a href="https://github.com/angular/angular.io/issues" title="Documentation issues on github">
38+
<i>issues</i> on the angular.io</a> github repository.
39+
Fixes (small ones) are greatly appreciated as
40+
<a href="https://github.com/angular/angular.io/pulls" title="Documentation PRs on github">
41+
<i>pull requests</i></a>.
42+
43+
Post issues with *Angular itself* to the [angular](https://github.com/angular/angular) github repository.

aio/content/guide/change-log.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ It helps clearly separate app code from setup and configuration files.
3939
All samples now have a `src/` folder at the project root.
4040
The former `app/` folder moves under `src/`.
4141
Read about moving your existing project to this structure in
42-
<a href="https://github.com/angular/quickstart#updating-to-a-newer-version-of-the-quickstart-repo" target="_blank" target="Migrating samples/quickstart app to the src folder">
42+
<a href="https://github.com/angular/quickstart#updating-to-a-newer-version-of-the-quickstart-repo" target="Migrating samples/quickstart app to the src folder">
4343
the QuickStart repo update instructions</a>.
4444

4545
Notably:
@@ -154,7 +154,7 @@ re-explains `[(ngModel)]` in terms of the basic `[()]` syntax.
154154

155155
This change supports ES6 developers and aligns better with typical Angular libraries.
156156
It does not affect the module's API but it does affect how you load and import it.
157-
See the <a href="https://github.com/angular/in-memory-web-api/blob/master/CHANGELOG.md#0113-2016-10-20" target="_blank">change note</a>
157+
See the <a href="https://github.com/angular/in-memory-web-api/blob/master/CHANGELOG.md#0113-2016-10-20">change note</a>
158158
in the `in-memory-web-api` repo.
159159

160160
## "Router" _preload_ syntax and _:enter_/_:leave_ animations (2016-10-19)
@@ -201,7 +201,7 @@ This library is also useful to you during early development before you have a se
201201

202202
The package name was changed from "angular2-in-memory-web-api" which is still frozen-in-time on npm.
203203
The new "angular-in-memory-web-api" has new features.
204-
<a href="https://github.com/angular/in-memory-web-api/blob/master/README.md" target="_blank">Read about them on github</a>.
204+
<a href="https://github.com/angular/in-memory-web-api/blob/master/README.md">Read about them on github</a>.
205205

206206
## "Style Guide" with _NgModules_ (2016-09-27)
207207

aio/content/guide/deployment.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Notice the `paths` key:
154154

155155
In the standard SystemJS config, the `npm` path points to the `node_modules/`.
156156
In this server config, it points to
157-
<a href="https://unpkg.com/" target="_blank" title="unpkg.com">https://unpkg.com</a>,
157+
<a href="https://unpkg.com/" title="unpkg.com">https://unpkg.com</a>,
158158
a site that hosts _npm packages_,
159159
and loads them from the web directly.
160160
There are other service providers that do the same thing.
@@ -290,13 +290,13 @@ and using [_rollup_](guide/deployment#rollup) for bundling, minification, uglifi
290290

291291
### Webpack (and AOT)
292292

293-
<a href="https://webpack.js.org/" target="_blank" title="Webpack 2">Webpack 2</a> is another
293+
<a href="https://webpack.js.org/" title="Webpack 2">Webpack 2</a> is another
294294
great option for inlining templates and style-sheets, for bundling, minifying, and uglifying the application.
295295
The "[Webpack: an introduction](guide/webpack "Webpack: an introduction")" guide will get you started
296296
using webpack with Angular.
297297

298298
Consider configuring _Webpack_ with the official
299-
<a href="https://github.com/angular/angular-cli/tree/master/packages/%40ngtools/webpack" target="_blank" title="Ahead-of-Time Webpack Plugin">
299+
<a href="https://github.com/angular/angular-cli/tree/master/packages/%40ngtools/webpack" title="Ahead-of-Time Webpack Plugin">
300300
Angular Ahead-of-Time Webpack Plugin</a>.
301301
This plugin transpiles the TypeScript application code,
302302
bundles lazy loaded `NgModules` separately,
@@ -315,10 +315,10 @@ _Tree shaking_ is a _dead code elimination_ technique that removes entire export
315315
If a library exports something that the application doesn't import, a tree shaking tool removes it from the code base.
316316

317317
Tree shaking was popularized by
318-
<a href="http://rollupjs.org/" target="_blank" title="Rollup">Rollup</a>, a popular tool with an ecosystem of
318+
<a href="http://rollupjs.org/" title="Rollup">Rollup</a>, a popular tool with an ecosystem of
319319
plugins for bundling, minification, and uglification.
320320
Learn more about tree shaking and dead code elmination in
321-
<a href="https://medium.com/@Rich_Harris/tree-shaking-versus-dead-code-elimination-d3765df85c80#.15ih9cyvl" target="_blank" title="Tree-shaking and Dead Code Elimination">
321+
<a href="https://medium.com/@Rich_Harris/tree-shaking-versus-dead-code-elimination-d3765df85c80#.15ih9cyvl" title="Tree-shaking and Dead Code Elimination">
322322
this post</a> by rollup-creator, Rich Harris.
323323

324324

@@ -349,7 +349,7 @@ You can waste a lot of time and money optimizing something that has no tangible
349349
You should measure the app's actual behavior when running in the environments that are important to you.
350350

351351
The
352-
<a href="https://developers.google.com/web/tools/chrome-devtools/network-performance/understanding-resource-timing" target="_blank" title="Chrome DevTools Network Performance">
352+
<a href="https://developers.google.com/web/tools/chrome-devtools/network-performance/understanding-resource-timing" title="Chrome DevTools Network Performance">
353353
Chrome DevTools Network Performance page</a> is a good place to start learning about measuring performance.
354354

355355
The [WebPageTest](https://www.webpagetest.org/) tool is another good choice
@@ -611,15 +611,15 @@ and to
611611
### Requesting services from a different server (CORS)
612612

613613
Angular developers may encounter a
614-
<a href="https://en.wikipedia.org/wiki/Cross-origin_resource_sharing" target="_blank" title="Cross-origin resource sharing">
614+
<a href="https://en.wikipedia.org/wiki/Cross-origin_resource_sharing" title="Cross-origin resource sharing">
615615
<i>cross-origin resource sharing</i></a> error when making a service request (typically a data service request).
616616
to a server other than the application's own host server.
617617
Browsers forbid such requests unless the server permits them explicitly.
618618

619619
There isn't anything the client application can do about these errors.
620620
The server must be configured to accept the application's requests.
621621
Read about how to enable CORS for specific servers at
622-
<a href="http://enable-cors.org/server.html" target="_blank" title="Enabling CORS server">enable-cors.org</a>.
622+
<a href="http://enable-cors.org/server.html" title="Enabling CORS server">enable-cors.org</a>.
623623

624624

625625
{@a next-steps}

aio/content/guide/http.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ Alternatively, you can temporarily target a JSON file by changing the endpoint U
318318

319319
{@a rxjs}
320320
If you are familiar with asynchronous methods in modern JavaScript, you might expect the `get` method to return a
321-
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank" title="Promise">promise</a>.
321+
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" title="Promise">promise</a>.
322322
You'd expect to chain a call to `then()` and extract the heroes.
323323
Instead you're calling a `map()` method.
324324
Clearly this is not a promise.
@@ -332,9 +332,9 @@ and `map()` is one of the RxJS *operators*.
332332

333333

334334
## RxJS library
335-
<a href="http://reactivex.io/rxjs" target="_blank" title="RxJS Reactive Extensions">RxJS</a>
335+
<a href="http://reactivex.io/rxjs" title="RxJS Reactive Extensions">RxJS</a>
336336
is a third party library, endorsed by Angular, that implements the
337-
<a href="https://www.youtube.com/watch?v=VLGCCpOWFFw" target="_blank" title="Video: Rob Wormald on Observables"><b>asynchronous Observable</b></a> pattern.
337+
<a href="https://www.youtube.com/watch?v=VLGCCpOWFFw" title="Video: Rob Wormald on Observables"><b>asynchronous Observable</b></a> pattern.
338338

339339
All of the Developer Guide samples have installed the RxJS npm package
340340
because Observables are used widely in Angular applications.
@@ -962,13 +962,13 @@ processes that stream _before_ calling the service.
962962

963963

964964

965-
* <a href="https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/debounce.md" target="_blank" title="debounce operator"><i>debounceTime</i></a>
965+
* <a href="https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/debounce.md" title="debounce operator"><i>debounceTime</i></a>
966966
waits for the user to stop typing for at least 300 milliseconds.
967967

968-
* <a href="https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/distinctuntilchanged.md" target="_blank" title="distinctUntilChanged operator"><i>distinctUntilChanged</i></a>
968+
* <a href="https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/distinctuntilchanged.md" title="distinctUntilChanged operator"><i>distinctUntilChanged</i></a>
969969
ensures that the service is called only when the new search term is different from the previous search term.
970970

971-
* The <a href="https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/flatmaplatest.md" target="_blank" title="switchMap operator"><i>switchMap</i></a>
971+
* The <a href="https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/flatmaplatest.md" title="switchMap operator"><i>switchMap</i></a>
972972
calls the `WikipediaService` with a fresh, debounced search term and coordinates the stream(s) of service response.
973973

974974
The role of `switchMap` is particularly important.
@@ -1104,11 +1104,11 @@ it substitutes the Angular _in-memory web api_ simulator for the actual XHR back
11041104

11051105
The in-memory web api is not part of Angular _proper_.
11061106
It's an optional service in its own
1107-
<a href="https://github.com/angular/in-memory-web-api" target="_blank" title="In-memory Web API"><i>angular-in-memory-web-api</i></a>
1107+
<a href="https://github.com/angular/in-memory-web-api" title="In-memory Web API"><i>angular-in-memory-web-api</i></a>
11081108
library installed with npm (see `package.json`).
11091109

11101110
See the
1111-
<a href="https://github.com/angular/in-memory-web-api/blob/master/README.md" target="_blank" title='In-memory Web API "README.md"'><i>README file</i></a>
1111+
<a href="https://github.com/angular/in-memory-web-api/blob/master/README.md" title='In-memory Web API "README.md"'><i>README file</i></a>
11121112
for configuration options, default behaviors, and limitations.
11131113

11141114

0 commit comments

Comments
 (0)