fix: 翻译微调
This commit is contained in:
parent
1b2560cf4e
commit
8494cf4b25
@ -10,7 +10,7 @@ In this page, you'll create a component with a list of heroes.
|
||||
You'll display the list of hero names and
|
||||
conditionally show a message below the list.
|
||||
|
||||
本章中,你将创建一个英雄列表组件。
|
||||
本章中,你将创建一个带英雄列表的组件。
|
||||
你将显示英雄名字的列表,并根据条件在列表下方显示一条消息。
|
||||
|
||||
The final UI looks like this:
|
||||
|
@ -41,11 +41,11 @@ Custom elements bootstrap themselves - they start automatically when they are ad
|
||||
|
||||
- <b>Content-rich applications</b>
|
||||
|
||||
<b>内容丰富的应用</b>
|
||||
<b>富内容应用</b>
|
||||
|
||||
If you have a content-rich app, such as the Angular app that presents this documentation, custom elements let you give your content providers sophisticated Angular functionality without requiring knowledge of Angular. For example, an Angular guide like this one is added directly to the DOM by the Angular navigation tools, but can include special elements like `<code-snippet>` that perform complex operations. All you need to tell your content provider is the syntax of your custom element. They don't need to know anything about Angular, or anything about your component's data structures or implementation.
|
||||
|
||||
如果你有一个内容丰富的应用(比如用来展示本文档的),自定义元素可以为你的内容提供方赋予复杂的 Angular 功能,而不用要求他了解 Angular 的知识。比如,像本文档一样的 Angular 指南是使用 Angular 导航工具直接添加到 DOM 中的,但是其中可以包含特殊的元素,比如 `<code-snippet>`,它可以执行复杂的操作。
|
||||
如果你有一个富内容应用(比如正在展示本文档的这个),自定义元素可以为你的内容提供方赋予复杂的 Angular 功能,而不用要求他了解 Angular 的知识。比如,像本文档一样的 Angular 指南是使用 Angular 导航工具直接添加到 DOM 中的,但是其中可以包含特殊的元素,比如 `<code-snippet>`,它可以执行复杂的操作。
|
||||
你所要告诉你的内容提供方的一切,就是这个自定义元素的语法。他们不需要了解关于 Angular 的任何知识,也不需要了解你的组件的数据结构或实现。
|
||||
|
||||
### How it works
|
||||
@ -284,7 +284,7 @@ Previously, when you wanted to add a component to an app at runtime, you had to
|
||||
|
||||
Using an Angular custom element makes the process much simpler and more transparent, by providing all of the infrastructure and framework automatically—all you have to do is define the kind of event handling you want. (You do still have to exclude the component from compilation, if you are not going to use it in your app.)
|
||||
|
||||
可以用 Angular 自定义组件会让这个过程更简单、更透明。只要自动提供所有基础设施和框架即可,你所要做的一切就是定义所需的各种事件处理逻辑。(如果你不准备在应用中直接用它,那就还要把该组件从编译中排除出去。)
|
||||
用 Angular 自定义组件会让这个过程更简单、更透明。只要自动提供所有基础设施和框架即可,你所要做的一切就是定义所需的各种事件处理逻辑。(如果你不准备在应用中直接用它,还要把该组件从编译中排除出去。)
|
||||
|
||||
The Popup Service example app defines a component that you can either load dynamically or convert to a custom element.
|
||||
|
||||
|
@ -18,8 +18,8 @@ A basic understanding of the following concepts:
|
||||
|
||||
An entry component is any component that Angular loads imperatively, (which means you’re not referencing it in the template), by type. You specify an entry component by bootstrapping it in an NgModule, or including it in a routing definition.
|
||||
|
||||
从分类上说,入口组件是 Angular 必须加载的(也就是说你没有在模板中引用过它)任意组件,
|
||||
你可以通过在 NgModule 中引导它,或者把它包含在路由定义中来指定入口组件。
|
||||
从分类上说,入口组件是 Angular 命令式加载的任意组件(也就是说你没有在模板中引用过它),
|
||||
你可以在 NgModule 中引导它,或把它包含在路由定义中来指定入口组件。
|
||||
|
||||
<div class="alert is-helpful">
|
||||
|
||||
|
@ -439,7 +439,7 @@ Bootstrap 为这个表单提供了一些样式。
|
||||
|
||||
To add the stylesheet, open `styles.css` and add the following import line at the top:
|
||||
|
||||
要添加样式表,就打开 `index.html`,并把下列链接添加到 `<head>` 中:
|
||||
要添加样式表,就打开 `styles.css`,并把下列代码添加到顶部:
|
||||
|
||||
<code-example path="forms/src/styles.1.css" linenums="false" title="src/styles.css">
|
||||
|
||||
|
@ -1344,7 +1344,7 @@ Sometimes applications transfer large amounts of data and those transfers can ta
|
||||
File uploads are a typical example.
|
||||
Give the users a better experience by providing feedback on the progress of such transfers.
|
||||
|
||||
有事,应用会传输大量数据,并且这些传输可能会花费很长时间。
|
||||
有时,应用会传输大量数据,并且这些传输可能会花费很长时间。
|
||||
典型的例子是文件上传。
|
||||
可以通过在传输过程中提供进度反馈,来提升用户体验。
|
||||
|
||||
|
@ -365,7 +365,7 @@ Replace that import with this one:
|
||||
Angular adds the `appId` value (which can be _any_ string) to the style-names of the server-rendered pages,
|
||||
so that they can be identified and removed when the client app starts.
|
||||
|
||||
Angular 会把 `appId` 值(它可以是*任何*字符串)添加到服务端渲染页面的样式名中,以便它们在客户端应用启动时可以被找到并移除。
|
||||
Angular 会把 `appId` 值(它可以是*任何*字符串)添加到服务端渲染页面的样式名中,以便在客户端应用启动时可以找到并移除它们。
|
||||
|
||||
You can get runtime information about the current platform and the `appId` by injection.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user