Skip to content

Commit

Permalink
docs(aio): resize images
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxandxss authored and Zhicheng Wang committed Aug 11, 2017
1 parent 12fe3eb commit 63fae0d
Show file tree
Hide file tree
Showing 63 changed files with 50 additions and 49 deletions.
2 changes: 1 addition & 1 deletion aio/content/guide/aot-compiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,6 @@ Here's the map for _Tour of Heroes_.

<a href="generated/images/guide/aot-compiler/toh-pt6-bundle.png" title="View larger image">
<figure>
<img src="generated/images/guide/aot-compiler/toh-pt6-bundle.png" alt="toh-pt6-bundle" width="700">
<img src="generated/images/guide/aot-compiler/toh-pt6-bundle-700w.png" alt="toh-pt6-bundle">
</figure>
</a>
23 changes: 12 additions & 11 deletions aio/content/guide/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Of course, there is more to it than this.
You'll learn the details in the pages that follow. For now, focus on the big picture.

<figure>
<img src="generated/images/guide/architecture/overview2.png" alt="overview" width="700" height="356">
<img src="generated/images/guide/architecture/overview2.png" alt="overview">
</figure>

<!--
Expand All @@ -50,7 +50,8 @@ The code referenced on this page is available as a <live-example></live-example>

## Modules

<img src="generated/images/guide/architecture/module.png" alt="Component" class="left" width="240" height="183">
<img src="generated/images/guide/architecture/module.png" alt="Component" class="left">


Angular apps are modular and Angular has its own modularity system called _Angular modules_ or _NgModules_.

Expand Down Expand Up @@ -134,7 +135,7 @@ These are two different and _complementary_ module systems. Use them both to wri

### Angular libraries

<img src="generated/images/guide/architecture/library-module.png" alt="Component" class="left" width="240" height="181">
<img src="generated/images/guide/architecture/library-module.png" alt="Component" class="left">

Angular ships as a collection of JavaScript modules. You can think of them as library modules.

Expand Down Expand Up @@ -171,7 +172,7 @@ Learn more from the [Angular modules](guide/ngmodule) page.

## Components

<img src="generated/images/guide/architecture/hero-component.png" alt="Component" class="left" width="200" height="115">
<img src="generated/images/guide/architecture/hero-component.png" alt="Component" class="left">

A _component_ controls a patch of screen called a *view*.

Expand Down Expand Up @@ -199,7 +200,7 @@ Your app can take action at each moment in this lifecycle through optional [life

## Templates

<img src="generated/images/guide/architecture/template.png" alt="Template" class="left" width="200">
<img src="generated/images/guide/architecture/template.png" alt="Template" class="left">

You define a component's view with its companion **template**. A template is a form of HTML
that tells Angular how to render the component.
Expand All @@ -218,7 +219,7 @@ The `HeroDetailComponent` (code not shown) presents facts about a particular her
hero that the user selects from the list presented by the `HeroListComponent`.
The `HeroDetailComponent` is a **child** of the `HeroListComponent`.

<img src="generated/images/guide/architecture/component-tree.png" alt="Metadata" class="left" width="300" height="260">
<img src="generated/images/guide/architecture/component-tree.png" alt="Metadata" class="left">

Notice how `<hero-detail>` rests comfortably among native HTML elements. Custom components mix seamlessly with native HTML in the same layouts.

Expand Down Expand Up @@ -266,7 +267,7 @@ This is one way to tell Angular that the component's constructor requires a `Her
so it can get the list of heroes to display.


<img src="generated/images/guide/architecture/template-metadata-component.png" alt="Metadata" class="left" width="114" height="200">
<img src="generated/images/guide/architecture/template-metadata-component.png" alt="Metadata" class="left">

The metadata in the `@Component` tells Angular where to get the major building blocks you specify for the component.

Expand All @@ -287,7 +288,7 @@ Without a framework, you would be responsible for pushing data values into the H
into actions and value updates. Writing such push/pull logic by hand is tedious, error-prone, and a nightmare to
read as any experienced jQuery programmer can attest.

<img src="generated/images/guide/architecture/databinding.png" alt="Data Binding" class="left" width="220" height="204">
<img src="generated/images/guide/architecture/databinding.png" alt="Data Binding" class="left">

Angular supports **data binding**,
a mechanism for coordinating parts of a template with parts of a component.
Expand Down Expand Up @@ -329,7 +330,7 @@ from the root of the application component tree through all child components.
Data binding plays an important role in communication between a template and its component.

<figure>
<img src="generated/images/guide/architecture/parent-child-binding.png" alt="Parent/Child binding" width="358" height="171">
<img src="generated/images/guide/architecture/parent-child-binding.png" alt="Parent/Child binding">
</figure>

Data binding is also important for communication between parent and child components.
Expand All @@ -338,7 +339,7 @@ Data binding is also important for communication between parent and child compon

## Directives

<img src="generated/images/guide/architecture/directive.png" alt="Parent child" class="left" width="150" height="147">
<img src="generated/images/guide/architecture/directive.png" alt="Parent child" class="left">

Angular templates are *dynamic*. When Angular renders them, it transforms the DOM
according to the instructions given by **directives**.
Expand Down Expand Up @@ -441,7 +442,7 @@ application logic into services and make those services available to components

## Dependency injection

<img src="generated/images/guide/architecture/dependency-injection.png" alt="Service" class="left" width="200" height="89">
<img src="generated/images/guide/architecture/dependency-injection.png" alt="Service" class="left">

_Dependency injection_ is a way to supply a new instance of a class
with the fully-formed dependencies it requires. Most dependencies are services.
Expand Down
4 changes: 2 additions & 2 deletions aio/content/guide/dependency-injection-in-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ The `HeroOfTheMonthComponent` example demonstrates many of the alternatives and
It's visually simple: a few properties and the logs produced by a logger.

<figure>
<img src="generated/images/guide/dependency-injection-in-action/hero-of-month.png" alt="Hero of the month" width="300px">
<img src="generated/images/guide/dependency-injection-in-action/hero-of-month.png" alt="Hero of the month">
</figure>


Expand Down Expand Up @@ -746,7 +746,7 @@ Behind the scenes, Angular actually sets the `logger` parameter to the full serv
The following image, which displays the logging date, confirms the point:

<figure>
<img src="generated/images/guide/dependency-injection-in-action/date-logger-entry.png" alt="DateLoggerService entry" width="300px">
<img src="generated/images/guide/dependency-injection-in-action/date-logger-entry.png" alt="DateLoggerService entry">
</figure>


Expand Down
6 changes: 3 additions & 3 deletions aio/content/guide/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ The app uses the Angular <code>Http</code> client to communicate via **XMLHttpRe
It works like this:

<figure>
<img src='generated/images/guide/http/http-toh.gif' alt="ToH mini app" width="250" height="222">
<img src='generated/images/guide/http/http-toh.gif' alt="ToH mini app">
</figure>

This demo has a single component, the `HeroListComponent`. Here's its template:
Expand Down Expand Up @@ -496,7 +496,7 @@ Here is a simple search that shows suggestions from Wikipedia as the user
types in a text box:

<figure>
<img src='generated/images/guide/http/wiki-1.gif' alt="Wikipedia search app (v.1)" width="250" height="267">
<img src='generated/images/guide/http/wiki-1.gif' alt="Wikipedia search app (v.1)">
</figure>

Wikipedia offers a modern `CORS` API and a legacy `JSONP` search API. This example uses the latter.
Expand Down Expand Up @@ -590,7 +590,7 @@ It should only make requests when the user *stops typing*.
Here's how it will work after refactoring:

<figure>
<img src='generated/images/guide/http/wiki-2.gif' alt="Wikipedia search app (v.2)" width="250" height="267">
<img src='generated/images/guide/http/wiki-2.gif' alt="Wikipedia search app (v.2)">
</figure>

### 2. Search when the search term changes
Expand Down
2 changes: 1 addition & 1 deletion aio/content/guide/lifecycle-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Angular calls lifecycle hook methods on directives and components as it creates,

@description

<img src="generated/images/guide/lifecycle-hooks/hooks-in-sequence.png" alt="Us" class="left" width="200" height="283">
<img src="generated/images/guide/lifecycle-hooks/hooks-in-sequence.png" alt="Us" class="left">

A component has a lifecycle managed by Angular.

Expand Down
10 changes: 5 additions & 5 deletions aio/content/guide/reactive-forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ Now that everything is wired up, the browser should display something like this:


<figure>
<img src="generated/images/guide/reactive-forms/just-formcontrol.png" width="400" height="133" alt="Single FormControl">
<img src="generated/images/guide/reactive-forms/just-formcontrol.png" alt="Single FormControl">
</figure>


Expand Down Expand Up @@ -460,7 +460,7 @@ Piping it through the `JsonPipe` renders the model as JSON in the browser:


<figure>
<img src="generated/images/guide/reactive-forms/json-output.png" width="400" height="176" alt="JSON output">
<img src="generated/images/guide/reactive-forms/json-output.png" alt="JSON output">
</figure>


Expand Down Expand Up @@ -570,7 +570,7 @@ The browser displays the following:


<figure>
<img src="generated/images/guide/reactive-forms/validators-json-output.png" width="400" height="223" alt="Single FormControl">
<img src="generated/images/guide/reactive-forms/validators-json-output.png" alt="Single FormControl">
</figure>


Expand Down Expand Up @@ -699,7 +699,7 @@ with the nested address `FormGroup`:


<figure>
<img src="generated/images/guide/reactive-forms/address-group.png" width="400" height="55" alt="JSON output">
<img src="generated/images/guide/reactive-forms/address-group.png" alt="JSON output">
</figure>


Expand Down Expand Up @@ -1268,7 +1268,7 @@ Back in the browser, select the hero named "Magneta".


<figure>
<img src="generated/images/guide/reactive-forms/addresses-array.png" width="400" height="40" alt="JSON output of addresses array">
<img src="generated/images/guide/reactive-forms/addresses-array.png" alt="JSON output of addresses array">
</figure>


Expand Down
16 changes: 8 additions & 8 deletions aio/content/guide/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,15 +534,15 @@ and the *Heroes* view with its list of heroes.


<figure>
<img src='generated/images/guide/router/hero-list.png' alt="Hero List" width="250">
<img src='generated/images/guide/router/hero-list.png' alt="Hero List">
</figure>



Select one hero and the app takes you to a hero editing screen.

<figure>
<img src='generated/images/guide/router/hero-detail.png' alt="Crisis Center Detail" width="250">
<img src='generated/images/guide/router/hero-detail.png' alt="Crisis Center Detail">
</figure>


Expand All @@ -559,7 +559,7 @@ Now click the *Crisis Center* link for a list of ongoing crises.


<figure>
<img src='generated/images/guide/router/crisis-center-list.png' alt="Crisis Center List" width="250">
<img src='generated/images/guide/router/crisis-center-list.png' alt="Crisis Center List">
</figure>


Expand All @@ -572,7 +572,7 @@ Notice that the corresponding name in the crisis list does _not_ change.


<figure>
<img src='generated/images/guide/router/crisis-center-detail.png' alt="Crisis Center Detail" width="250">
<img src='generated/images/guide/router/crisis-center-detail.png' alt="Crisis Center Detail">
</figure>


Expand All @@ -588,7 +588,7 @@ Up pops a dialog box.


<figure>
<img src='generated/images/guide/router/confirm-dialog.png' alt="Confirm Dialog" width="250">
<img src='generated/images/guide/router/confirm-dialog.png' alt="Confirm Dialog">
</figure>


Expand All @@ -610,7 +610,7 @@ Proceed to the first application milestone.
Begin with a simple version of the app that navigates between two empty views.

<figure>
<img src='generated/images/guide/router/router-1-anim.gif' alt="App in action" width="250">
<img src='generated/images/guide/router/router-1-anim.gif' alt="App in action">
</figure>


Expand Down Expand Up @@ -766,7 +766,7 @@ and a *router outlet* where the router swaps views on and off the page. Here's w


<figure>
<img src='generated/images/guide/router/shell-and-outlet.png' alt="Shell" width="300">
<img src='generated/images/guide/router/shell-and-outlet.png' alt="Shell">
</figure>


Expand Down Expand Up @@ -2692,7 +2692,7 @@ and two buttons, "Send" and "Cancel".


<figure>
<img src='generated/images/guide/router/contact-popup.png' alt="Contact popup" width="250">
<img src='generated/images/guide/router/contact-popup.png' alt="Contact popup">
</figure>


Expand Down
4 changes: 2 additions & 2 deletions aio/content/guide/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ tag but keeps safe content such as the text content of the `<script>` tag and th


<figure>
<img src='generated/images/guide/security/binding-inner-html.png' width="700" height="285" alt='A screenshot showing interpolated and bound HTML values'>
<img src='generated/images/guide/security/binding-inner-html.png' alt='A screenshot showing interpolated and bound HTML values'>
</figure>


Expand Down Expand Up @@ -233,7 +233,7 @@ this, mark the URL value as a trusted URL using the `bypassSecurityTrustUrl` cal


<figure>
<img src='generated/images/guide/security/bypass-security-component.png' alt='A screenshot showing an alert box created from a trusted URL' width="700" height="223">
<img src='generated/images/guide/security/bypass-security-component.png' alt='A screenshot showing an alert box created from a trusted URL'>
</figure>


Expand Down
4 changes: 2 additions & 2 deletions aio/content/guide/set-document-title.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ See the <live-example name="set-document-title"></live-example>.

<div class="l-sub-section clearfix">

<img src='generated/images/plunker/plunker-switch-to-editor-button.png' width="200" height="70" alt="pop out the window" class="right">
<img src='generated/images/plunker/plunker-separate-window-button.png' width="200" height="47" alt="pop out the window" class="right">
<img src='generated/images/plunker/plunker-switch-to-editor-button.png'alt="pop out the window" class="right">
<img src='generated/images/plunker/plunker-separate-window-button.png' alt="pop out the window" class="right">

To see the browser title bar change in the live example,
open it again in the Plunker editor by clicking the icon in the upper right,
Expand Down
2 changes: 1 addition & 1 deletion aio/content/guide/structural-directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ Angular erases the middle "Hip!", leaving the cheer a bit less enthusiastic.


<figure>
<img src='generated/images/guide/structural-directives/template-rendering.png' width="350" height="59" alt="template tag rendering">
<img src='generated/images/guide/structural-directives/template-rendering.png' alt="template tag rendering">
</figure>


Expand Down
2 changes: 1 addition & 1 deletion aio/content/guide/styleguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4985,7 +4985,7 @@ Useful tools and tips for Angular.
**Consider** using [snippets](https://marketplace.visualstudio.com/items?itemName=johnpapa.Angular2) for [Visual Studio Code](https://code.visualstudio.com/) that follow these styles and guidelines.

<a href="https://marketplace.visualstudio.com/items?itemName=johnpapa.Angular2">
<img src="https://github.com/johnpapa/vscode-angular2-snippets/raw/master/images/use-extension.gif" width="700" height="429" alt="Use Extension">
<img src="generated/images/guide/styleguide/use-extension.gif" alt="Use Extension">
</a>

**Consider** using [snippets](https://atom.io/packages/angular-2-typescript-snippets) for [Atom](https://atom.io/) that follow these styles and guidelines.
Expand Down
2 changes: 1 addition & 1 deletion aio/content/guide/template-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ content harmlessly.


<figure>
<img src='generated/images/guide/template-syntax/evil-title.png' alt="evil title made safe" width="500" height="40">
<img src='generated/images/guide/template-syntax/evil-title.png' alt="evil title made safe">
</figure>

<a href="#top-of-page">back to top</a>
Expand Down
6 changes: 3 additions & 3 deletions aio/content/guide/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ The Angular CLI has different commands to do the same thing. Adjust accordingly.
After a few moments, karma opens a browser and starts writing to the console.

<figure>
<img src='generated/images/guide/testing/karma-browser.png' width="400" height="142" alt="Karma browser">
<img src='generated/images/guide/testing/karma-browser.png' alt="Karma browser">
</figure>


Expand Down Expand Up @@ -477,7 +477,7 @@ Debug specs in the browser in the same way that you debug an application.


<figure>
<img src='generated/images/guide/testing/karma-1st-spec-debug.png' width="700" height="150" alt="Karma debugging">
<img src='generated/images/guide/testing/karma-1st-spec-debug.png' alt="Karma debugging">
</figure>


Expand Down Expand Up @@ -2511,7 +2511,7 @@ A better solution is to create an artificial test component that demonstrates al


<figure>
<img src='generated/images/guide/testing/highlight-directive-spec.png' width="200" height="159" alt="HighlightDirective spec in action">
<img src='generated/images/guide/testing/highlight-directive-spec.png' alt="HighlightDirective spec in action">
</figure>


Expand Down
Loading

0 comments on commit 63fae0d

Please sign in to comment.