Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Side by Side Diff: src/site/docs/tutorials/indexeddb/index.markdown

Issue 99503002: appropriating Shailen's excellent Futures intro into tutorial (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: another pesky file Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 --- 1 ---
2 layout: default 2 layout: default
3 title: "Use IndexedDB" 3 title: "Use IndexedDB"
4 description: "Use IndexedDB for persistence and offline capability for your app. " 4 description: "Use IndexedDB for persistence and offline capability for your app. "
5 has-permalinks: true 5 has-permalinks: true
6 tutorial: 6 tutorial:
7 id: indexeddb 7 id: indexeddb
8 next: 8 next:
9 next-title: "Home" 9 next-title: "Home"
10 prev: forms/ 10 prev: forms/
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 and uses Polymer data-bindings to keep the View in sync. 185 and uses Polymer data-bindings to keep the View in sync.
186 Also, it uses Timer events to trigger updates in the Model. 186 Also, it uses Timer events to trigger updates in the Model.
187 187
188 ###The libraries used by the count_down app 188 ###The libraries used by the count_down app
189 189
190 The count_down app uses the following libraries: 190 The count_down app uses the following libraries:
191 191
192 | Library | Description | 192 | Library | Description |
193 |---|---| 193 |---|---|
194 | <a href="https://api.dartlang.org/dart_indexed_db.html" target="_blank">dart:i ndexed_db</a> | Save data into an indexed database for persistence and offline c apability | 194 | <a href="https://api.dartlang.org/dart_indexed_db.html" target="_blank">dart:i ndexed_db</a> | Save data into an indexed database for persistence and offline c apability |
195 | <a href="https://api.dartlang.org/dart_async.html" target="_blank">dart:async< /a> | Perform tasks asynchronously | 195 | <a href="https://api.dartlang.org/dart_async.html" target="_blank">dart:async< /a> | Perform tasks asynchronously with Futures |
196 | <a href="https://api.dartlang.org/dart_core.html" target="_blank">dart:core</a > | Use DateTime and Duration to manage time-related tasks | 196 | <a href="https://api.dartlang.org/dart_core.html" target="_blank">dart:core</a > | Use DateTime and Duration to manage time-related tasks |
197 | <a href="https://api.dartlang.org/polymer.html" target="_blank">Polymer</a> | Create UIs with custom elements and data binding. | 197 | <a href="https://api.dartlang.org/polymer.html" target="_blank">Polymer</a> | Create UIs with custom elements and data binding. |
198 {: .table } 198 {: .table }
199 199
200 This tutorial explains the Dart API for IndexedDB used by the count_down app. 200 This tutorial explains the Dart API for IndexedDB used by the count_down app.
201 201
202 <aside class="alert alert-info" markdown="1"> 202 <aside class="alert alert-info" markdown="1">
203 <strong>Note:</strong> 203 <strong>Note:</strong>
204 This tutorial does not cover Futures or Polymer. 204 This tutorial does not cover Futures or Polymer.
205 For information about Futures, 205 For information about Futures,
206 see 206 see
207 <a href="/articles/using-future-based-apis/">Using Future Based APIs</a> 207 <a href="/docs/tutorials/futures/">Use Future-Based APIs</a>
208 and 208 and
209 <a href="/articles/futures-and-error-handling/">Futures and Error Handling</a>. 209 <a href="/articles/futures-and-error-handling/">Futures and Error Handling</a>.
210 For information about Polymer, 210 For information about Polymer,
211 refer to <a href="/docs/tutorials/polymer-intro/">Define a Custom Element</a>. 211 refer to <a href="/docs/tutorials/polymer-intro/">Define a Custom Element</a>.
212 212
213 </aside> 213 </aside>
214 214
215 ##Details about IndexedDB 215 ##Details about IndexedDB
216 216
217 Some important facts you need to know about IndexedDB: 217 Some important facts you need to know about IndexedDB:
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 is passed to the callback function. 703 is passed to the callback function.
704 Use `cursor.key` to get the key for the record just retrieved. 704 Use `cursor.key` to get the key for the record just retrieved.
705 Use `cursor.value` to get the value for that record. 705 Use `cursor.value` to get the value for that record.
706 706
707 The _loadFromDB method returns a Future that returns the length of the stream. 707 The _loadFromDB method returns a Future that returns the length of the stream.
708 708
709 ##Other resources 709 ##Other resources
710 710
711 <ul> 711 <ul>
712 <li> For information about Futures, see 712 <li> For information about Futures, see
713 <a href="/articles/using-future-based-apis/">Using Future Based APIs</a> 713 <a href="/docs/tutorials/futures/">Use Future-Based APIs</a>
714 and 714 and
715 <a href="/articles/futures-and-error-handling/">Futures and Error Handling</a> . 715 <a href="/articles/futures-and-error-handling/">Futures and Error Handling</a> .
716 </li> 716 </li>
717 <li> 717 <li>
718 For information about Polymer, 718 For information about Polymer,
719 read <a href="/docs/tutorials/polymer-intro">Define a Custom Element</a>. 719 read <a href="/docs/tutorials/polymer-intro">Define a Custom Element</a>.
720 </li> 720 </li>
721 </ul> 721 </ul>
722 722
723 ###What next? 723 ###What next?
724 724
725 You've completed the tutorials! 725 You've completed the tutorials!
726 Check out the Dart 726 Check out the Dart
727 [code samples](/samples/) and [articles](/articles/). 727 [code samples](/samples/) and [articles](/articles/).
728 728
729 {% endcapture %} 729 {% endcapture %}
730 730
731 {% include tutorial.html %} 731 {% include tutorial.html %}
OLDNEW
« no previous file with comments | « src/site/docs/tutorials/index.markdown ('k') | src/site/docs/tutorials/polymer-intro/index.markdown » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698