Title: How is "initialize" used? · Issue #94 · microsoft/TypeScriptSamples · GitHub
Open Graph Title: How is "initialize" used? · Issue #94 · microsoft/TypeScriptSamples
X Title: How is "initialize" used? · Issue #94 · microsoft/TypeScriptSamples
Description: https://github.com/Microsoft/TypeScriptSamples/blob/master/todomvc/js/todos.ts#L131-L135 // Ensure that each todo created has `content`. initialize() { if (!this.get("content")) { this.set({ "content": this.defaults().content }); } } How...
Open Graph Description: https://github.com/Microsoft/TypeScriptSamples/blob/master/todomvc/js/todos.ts#L131-L135 // Ensure that each todo created has `content`. initialize() { if (!this.get("content")) { this.set({ "conte...
X Description: https://github.com/Microsoft/TypeScriptSamples/blob/master/todomvc/js/todos.ts#L131-L135 // Ensure that each todo created has `content`. initialize() { if (!this.get("content")) { this.se...
Opengraph URL: https://github.com/microsoft/TypeScriptSamples/issues/94
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How is \"initialize\" used?","articleBody":"https://github.com/Microsoft/TypeScriptSamples/blob/master/todomvc/js/todos.ts#L131-L135\n\n``` ts\n // Ensure that each todo created has `content`.\n initialize() {\n if (!this.get(\"content\")) {\n this.set({ \"content\": this.defaults().content });\n }\n }\n```\n\nHow/where is this called? My preference for a todo example is for stuff like this to be explicit or commented-- I am looking at this repo precisely because I'm not familiar with typescript, so I'm not sure if it's a typescript thing, a backbone thing (if so why isn't it in the `Backbone.Model` ts def?). Thanks!\n","author":{"url":"https://github.com/Sequoia","@type":"Person","name":"Sequoia"},"datePublished":"2016-04-21T15:43:00Z","url":"https://github.com/microsoft/TypeScriptSamples/issues/94"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:57357476-68f9-b6a1-e1e5-1e70980fc893 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E86:21F04E:6143F:82D21:6B044BDD |
| html-safe-nonce | 490471f05da99abb31acecb0a32194f07557ffd9c80146b6e6be28e3a82e6272 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTg2OjIxRjA0RTo2MTQzRjo4MkQyMTo2QjA0NEJERCIsInZpc2l0b3JfaWQiOiI4MzQ5MjAwMzM2ODI0ODQ3MzI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e81b12836e4ee55fe1ffee1704c360371c67d1ef6fdec41b73788809abf0cf66 |
| hovercard-subject-tag | issue:150112473 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScriptSamples/94/issue_layout |
| twitter:image | https://opengraph.githubassets.com/79ffdc401fa8ff02e8c766c65b260176327e195cbd337ad8f77f69fbfaf78368/microsoft/TypeScriptSamples/issues/94 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/79ffdc401fa8ff02e8c766c65b260176327e195cbd337ad8f77f69fbfaf78368/microsoft/TypeScriptSamples/issues/94 |
| og:image:alt | https://github.com/Microsoft/TypeScriptSamples/blob/master/todomvc/js/todos.ts#L131-L135 // Ensure that each todo created has `content`. initialize() { if (!this.get("content")) { this.set({ "conte... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Sequoia |
| hostname | github.com |
| expected-hostname | github.com |
| None | 002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScriptSamples git https://github.com/microsoft/TypeScriptSamples.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 21831014 |
| octolytics-dimension-repository_nwo | microsoft/TypeScriptSamples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21831014 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScriptSamples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 059f24c781e3a0d7df3f27a97da0e93fab06ae39 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width