-
Notifications
You must be signed in to change notification settings - Fork 141
guide/cheatsheet の翻訳 #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
|
@googlebot I signed it! |
|
CLAs look good, thanks! |
aio-ja/content/guide/cheatsheet.md
Outdated
| </tr><tr> | ||
| <td><code><div <b>[class.extra-sparkle]</b>="isDelightful"></code></td> | ||
| <td><p>Binds the presence of the CSS class <code>extra-sparkle</code> on the element to the truthiness of the expression <code>isDelightful</code>.</p> | ||
| <td><p>要素の<code>extra-sparkle</code>のCSSクラスの有無を、<code>isDelightful</code>式のTruthyな値にバインドします。</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
真偽値 としたほうが自然ですね
aio-ja/content/guide/cheatsheet.md
Outdated
| </tr><tr> | ||
| <td><code><button <b>(click)</b>="readRainbow($event)"></code></td> | ||
| <td><p>Calls method <code>readRainbow</code> when a click event is triggered on this button element (or its children) and passes in the event object.</p> | ||
| <td><p>このボタン要素(またはその子要素)でクリックイベントがトリガされ、イベントオブジェクトに渡されるときに、メソッド<code>readRainbow</code>を呼び出します。</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
トリガー としましょう
aio-ja/content/guide/cheatsheet.md
Outdated
| </tr><tr> | ||
| <td><code><video <b>#movieplayer</b> ...><br> <button <b>(click)</b>="movieplayer.play()"><br></video></code></td> | ||
| <td><p>Creates a local variable <code>movieplayer</code> that provides access to the <code>video</code> element instance in data-binding and event-binding expressions in the current template.</p> | ||
| <td><p>現在のテンプレートのデータバインディング式およびイベントバインディング式の<code>video</code>要素インスタンスへのアクセスを提供するローカル変数<code>movieplayer</code>を作成します。</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
現在のテンプレートのデータバインディング式およびイベントバインディング式の中で、video要素のインスタンスへのアクセスを提供する
aio-ja/content/guide/cheatsheet.md
Outdated
| <table class="is-full-width is-fixed-layout"> | ||
| <tbody><tr> | ||
| <th>Built-in directives</th> | ||
| <th>組み込みのディレクティブ</th> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ビルトインディレクティブ としましょう
aio-ja/content/guide/cheatsheet.md
Outdated
| </tr><tr> | ||
| <td><code><div <b>[ngSwitch]</b>="conditionExpression"><br> <ng-template <b>[<b>ngSwitchCase</b>]</b>="case1Exp">...</ng-template><br> <ng-template <b>ngSwitchCase</b>="case2LiteralString">...</ng-template><br> <ng-template <b>ngSwitchDefault</b>>...</ng-template><br></div></code></td> | ||
| <td><p>Conditionally swaps the contents of the div by selecting one of the embedded templates based on the current value of <code>conditionExpression</code>.</p> | ||
| <td><p><code>conditionExpression</code>の現在の値に基づいて埋め込みテンプレートの1つを選択することによって、divの内容を条件付きで交換します。</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
条件にしたがって入れ替えます
aio-ja/content/guide/cheatsheet.md
Outdated
| </tr><tr> | ||
| <td><code>class <b>CanActivate</b>Guard implements <b>CanActivate</b> {<br> canActivate(<br> route: ActivatedRouteSnapshot,<br> state: RouterStateSnapshot<br> ): Observable<boolean>|Promise<boolean>|boolean { ... }<br>}<br><br>{ path: ..., canActivate: [<b>CanActivate</b>Guard] }</code></td> | ||
| <td><p>An interface for defining a class that the router should call first to determine if it should activate this component. Should return a boolean or an Observable/Promise that resolves to a boolean.</p> | ||
| <td><p>このコンポーネントをアクティブにすべきかを判断するためにルータが最初に呼び出すクラスを定義するためのインターフェイス。 ブール値、もしくはObservable<boolean>およびPromise<boolean>を返す必要があります。</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boolean としましょう
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
インターフェースです
aio-ja/content/guide/cheatsheet.md
Outdated
| </tr><tr> | ||
| <td><code>class <b>CanDeactivate</b>Guard implements <b>CanDeactivate</b><T> {<br> canDeactivate(<br> component: T,<br> route: ActivatedRouteSnapshot,<br> state: RouterStateSnapshot<br> ): Observable<boolean>|Promise<boolean>|boolean { ... }<br>}<br><br>{ path: ..., canDeactivate: [<b>CanDeactivate</b>Guard] }</code></td> | ||
| <td><p>An interface for defining a class that the router should call first to determine if it should deactivate this component after a navigation. Should return a boolean or an Observable/Promise that resolves to a boolean.</p> | ||
| <td><p>ナビゲーション後にルータがこのコンポーネントを非アクティブ化すべきかを判断するためにルータが最初に呼び出すべきクラスを定義するためのインタフェース。 ブール値、もしくはObservable<boolean>およびPromise<boolean>を返す必要があります。</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
インターフェースです
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boolean
aio-ja/content/guide/cheatsheet.md
Outdated
| </tr><tr> | ||
| <td><code>class <b>CanActivateChild</b>Guard implements <b>CanActivateChild</b> {<br> canActivateChild(<br> route: ActivatedRouteSnapshot,<br> state: RouterStateSnapshot<br> ): Observable<boolean>|Promise<boolean>|boolean { ... }<br>}<br><br>{ path: ..., canActivateChild: [CanActivateGuard],<br> children: ... }</code></td> | ||
| <td><p>An interface for defining a class that the router should call first to determine if it should activate the child route. Should return a boolean or an Observable/Promise that resolves to a boolean.</p> | ||
| <td><p>子ルートをアクティブにすべかを判断するためにルータが最初に呼び出すクラスを定義するためのインターフェイス。ブール値、もしくはObservable<boolean>およびPromise<boolean>を返す必要があります。</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
インターフェース boolean
aio-ja/content/guide/cheatsheet.md
Outdated
| </tr><tr> | ||
| <td><code>class <b>Resolve</b>Guard implements <b>Resolve</b><T> {<br> resolve(<br> route: ActivatedRouteSnapshot,<br> state: RouterStateSnapshot<br> ): Observable<any>|Promise<any>|any { ... }<br>}<br><br>{ path: ..., resolve: [<b>Resolve</b>Guard] }</code></td> | ||
| <td><p>An interface for defining a class that the router should call first to resolve route data before rendering the route. Should return a value or an Observable/Promise that resolves to a value.</p> | ||
| <td><p>ルートをレンダリングする前にルートデータを解決するためにルータが最初に呼び出すべきクラスを定義するためのインターフェイス。 値か、その値に解決されるObservableおよびPromiseを返す必要があります。</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
インターフェース
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
値か、その値を解決するObservableおよびPromise
aio-ja/content/guide/cheatsheet.md
Outdated
| </tr><tr> | ||
| <td><code>class <b>CanLoad</b>Guard implements <b>CanLoad</b> {<br> canLoad(<br> route: Route<br> ): Observable<boolean>|Promise<boolean>|boolean { ... }<br>}<br><br>{ path: ..., canLoad: [<b>CanLoad</b>Guard], loadChildren: ... }</code></td> | ||
| <td><p>An interface for defining a class that the router should call first to check if the lazy loaded module should be loaded. Should return a boolean or an Observable/Promise that resolves to a boolean.</p> | ||
| <td><p>遅延ロードされたモジュールがロードされるべきかを判断するためにルータが最初に呼び出すべきクラスを定義するためのインタフェース。ブール値、もしくはObservable<boolean>およびPromise<boolean>を返す必要があります。</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
インターフェース boolean
|
翻訳ありがとうございます!いくつかの部分で修正をお願いします 🙇 |
|
@lacolaco レビューありがとうございます 🙏 |
|
修正ありがとうございました! 🙌 |
|
1コミットにsquashできますか? |
0935ccc to
557c093
Compare
|
これであってます?(rebase -i して push -f) |
|
ありがとうございました!CIとおり次第mergeします 👍 |
|
ありがとうございました! 🙇 |
guide/cheatsheet.md ( #71 ) を翻訳しました。
レビューをお願いします 🙇