{"id":191,"date":"2019-04-30T03:49:06","date_gmt":"2019-04-29T18:49:06","guid":{"rendered":"http:\/\/snow-cat.net\/?p=191"},"modified":"2019-04-30T03:54:09","modified_gmt":"2019-04-29T18:54:09","slug":"vue-js%e3%81%aespa%e9%96%8b%e7%99%ba1","status":"publish","type":"post","link":"https:\/\/snow-cat.net\/?p=191","title":{"rendered":"vue.js\u306eSPA\u958b\u767a1"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u3086\u304d\u306d\u3053\u3067\u3059\u3002<\/p>\n<p>\u73fe\u5728\u3001SPA\u3067\u500b\u4eba\u7684\u306a\u958b\u767a\u3092\u9032\u3081\u3066\u3044\u307e\u3059\u304c\u3001\u5b66\u3076\u3053\u3068\u304c\u591a\u3044\u306a\u3068\u601d\u3063\u305f\u306e\u3067\u30b7\u30ea\u30fc\u30ba\u5316\u3057\u3066\u66f8\u3044\u3066\u3044\u3053\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001SPA\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067\u306f<a href=\"https:\/\/qiita.com\/nagimaruxxx\/items\/8fc59a5ca05bb91bfe1f\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3092\u5143\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u30bb\u30c3\u30c6\u30a3\u30f3\u30b0\u3067\u304d\u305f\u72b6\u614b\u304b\u3089\u958b\u767a\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u8a2d\u5b9a<\/h2>\n<p>\u307e\u305a\u306f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u304b\u3089\u304b\u306a\u3068\u3044\u3046\u3053\u3068\u3067project\/src\/router\/index.js\u3092\u958b\u304f\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"theme:light-abite lang:js decode:true \" title=\"router.js\">import Vue from 'vue'\r\nimport Router from 'vue-router'\r\nimport HelloWorld from '@\/components\/HelloWorld'\r\n\r\nVue.use(Router)\r\n\r\nexport default new Router({\r\n  routes: [\r\n    {\r\n      path: '\/',\r\n      name: 'HelloWorld',\r\n      component: HelloWorld\r\n    }\r\n  ]\r\n})<\/pre>\n<p>\u3053\u306eroutes\u306b\u30eb\u30fc\u30c8\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001HelloWorld\u3092Top\u306b\u5909\u66f4\u3057\u3066\u3053\u3093\u306a\u611f\u3058\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"theme:light-abite lang:default decode:true\" title=\"router2\">import Vue from 'vue'\r\nimport Router from 'vue-router'\r\nimport Top from '@\/components\/Top'\r\n\r\nVue.use(Router)\r\n\r\nexport default new Router({\r\n  routes: [\r\n    {\r\n      path: '\/',\r\n      name: 'Top',\r\n      component: Top\r\n    }\r\n  ]\r\n})\r\n<\/pre>\n<p>import\u306e\u6240\u306f\u5fd8\u308c\u304c\u3061\u3067\u3059\u306d\u3002<\/p>\n<p>\u6b21\u306bproject\/src\/comonents\/HelloWorld.vue\u3092Top.vue\u306b\u5909\u66f4\u3057\u3066\u4e2d\u8eab\u3092\u3044\u3058\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"theme:light-abite lang:default decode:true \" title=\"top.vue\">&lt;template&gt;\r\n  &lt;div class=\"hello\"&gt;\r\n    &lt;h1&gt;{{ msg }}&lt;\/h1&gt;\r\n    &lt;h2&gt;\u30e1\u30cb\u30e5\u30fc&lt;\/h2&gt;\r\n    &lt;ul&gt;\r\n      &lt;li&gt;\r\n        &lt;a href=\"\"&gt;\r\n          \u30e1\u30cb\u30e5\u30fc\uff11\r\n        &lt;\/a&gt;\r\n      &lt;\/li&gt;\r\n      &lt;li&gt;\r\n        &lt;a href=\"\"&gt;\r\n          \u30e1\u30cb\u30e5\u30fc\uff12\r\n        &lt;\/a&gt;\r\n      &lt;\/li&gt;\r\n      &lt;li&gt;\r\n        &lt;a href=\"\"&gt;\r\n          \u30e1\u30cb\u30e5\u30fc\uff13\r\n        &lt;\/a&gt;\r\n      &lt;\/li&gt;\r\n      &lt;li&gt;\r\n        &lt;a href=\"\"&gt;\r\n          \u30e1\u30cb\u30e5\u30fc\uff14\r\n        &lt;\/a&gt;\r\n      &lt;\/li&gt;\r\n    &lt;\/ul&gt;\r\n  &lt;\/div&gt;\r\n&lt;\/template&gt;\r\n\r\n&lt;script&gt;\r\nexport default {\r\n  name: 'Top',\r\n  data () {\r\n    return {\r\n      msg: 'Top\u753b\u9762'\r\n    }\r\n  }\r\n}\r\n&lt;\/script&gt;\r\n\r\n&lt;!-- Add \"scoped\" attribute to limit CSS to this component only --&gt;\r\n&lt;style scoped&gt;\r\nh1, h2 {\r\n  font-weight: normal;\r\n}\r\nul {\r\n  list-style-type: none;\r\n  padding: 0;\r\n}\r\nli {\r\n  display: inline-block;\r\n  margin: 0 10px;\r\n}\r\na {\r\n  color: #42b983;\r\n}\r\n&lt;\/style&gt;<\/pre>\n<p>\u305d\u3046\u3059\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u306b\u5909\u5316\u3057\u307e\u3059\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"192\" data-permalink=\"https:\/\/snow-cat.net\/?attachment_id=192\" data-orig-file=\"https:\/\/i0.wp.com\/snow-cat.net\/wp-content\/uploads\/2019\/04\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-04-30-3.48.02.png?fit=1098%2C968&amp;ssl=1\" data-orig-size=\"1098,968\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2019-04-30 3.48.02\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/snow-cat.net\/wp-content\/uploads\/2019\/04\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-04-30-3.48.02.png?fit=300%2C264&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/snow-cat.net\/wp-content\/uploads\/2019\/04\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-04-30-3.48.02.png?fit=750%2C661&amp;ssl=1\" class=\"alignnone size-medium wp-image-192\" src=\"https:\/\/i0.wp.com\/snow-cat.net\/wp-content\/uploads\/2019\/04\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-04-30-3.48.02.png?resize=300%2C264\" alt=\"\" width=\"300\" height=\"264\" srcset=\"https:\/\/i0.wp.com\/snow-cat.net\/wp-content\/uploads\/2019\/04\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-04-30-3.48.02.png?resize=300%2C264&amp;ssl=1 300w, https:\/\/i0.wp.com\/snow-cat.net\/wp-content\/uploads\/2019\/04\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-04-30-3.48.02.png?resize=768%2C677&amp;ssl=1 768w, https:\/\/i0.wp.com\/snow-cat.net\/wp-content\/uploads\/2019\/04\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-04-30-3.48.02.png?resize=1024%2C903&amp;ssl=1 1024w, https:\/\/i0.wp.com\/snow-cat.net\/wp-content\/uploads\/2019\/04\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2019-04-30-3.48.02.png?w=1098&amp;ssl=1 1098w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u4eca\u65e5\u306e\u3068\u3053\u308d\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u304b\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u3086\u304d\u306d\u3053\u3067\u3059\u3002 \u73fe\u5728\u3001SPA\u3067\u500b\u4eba\u7684\u306a\u958b\u767a\u3092\u9032\u3081\u3066\u3044\u307e\u3059\u304c\u3001\u5b66\u3076\u3053\u3068\u304c\u591a\u3044\u306a\u3068\u601d\u3063\u305f\u306e\u3067 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-1"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pattVc-35","jetpack-related-posts":[{"id":993,"url":"https:\/\/snow-cat.net\/?p=993","url_meta":{"origin":191,"position":0},"title":"Laravel8\u306bvue.js\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5","author":"hiro","date":"2021\u5e745\u67083\u65e5","format":false,"excerpt":"\u73fe\u5728\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u9032\u3081\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001vue\u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u306f\u666e\u901a\u306bSPA\u3067\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3068\u306f\u82e5\u5e72\u7570\u306a\u308b\u2026","rel":"","context":"JavaScript","block_context":{"text":"JavaScript","link":"https:\/\/snow-cat.net\/?cat=11"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":246,"url":"https:\/\/snow-cat.net\/?p=246","url_meta":{"origin":191,"position":1},"title":"vue.js\u3092\u4e00\u304b\u3089\u8a2d\u5b9a\u3059\u308b","author":"hiro","date":"2019\u5e746\u670830\u65e5","format":false,"excerpt":"\u3053\u3093\u306b\u3061\u308f\u3001\u3086\u304d\u306d\u3053\u3067\u3059\u3002 \u6700\u8fd1vue.js\u306e\u74b0\u5883\u69cb\u7bc9\u3092\u884c\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u9806\u756a\u3092\u307e\u3068\u3081\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u2026","rel":"","context":"\u305d\u306e\u4ed6\u3082\u308d\u3082\u308d","block_context":{"text":"\u305d\u306e\u4ed6\u3082\u308d\u3082\u308d","link":"https:\/\/snow-cat.net\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":447,"url":"https:\/\/snow-cat.net\/?p=447","url_meta":{"origin":191,"position":2},"title":"\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u3067\u4f7f\u7528\u3057\u305f\u6280\u8853","author":"hiro","date":"2020\u5e744\u670816\u65e5","format":false,"excerpt":"\u6628\u65e5\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002 \u73fe\u5728\u8ee2\u8077\u4e2d\u306a\u306e\u3067\u4f5c\u3063\u305f\u306e\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3082\u3068\u3082\u3068SPA\u3092\u4f5c\u308a\u305f\u304b\u3063\u2026","rel":"","context":"\u305d\u306e\u4ed6\u3082\u308d\u3082\u308d","block_context":{"text":"\u305d\u306e\u4ed6\u3082\u308d\u3082\u308d","link":"https:\/\/snow-cat.net\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1433,"url":"https:\/\/snow-cat.net\/?p=1433","url_meta":{"origin":191,"position":3},"title":"react\u3067firebase\u306e\u521d\u671f\u8a2d\u5b9a","author":"hiro","date":"2022\u5e747\u670821\u65e5","format":false,"excerpt":"\u6700\u8fd1react\u3067\u6a5f\u80fd\u3092\u4f5c\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001firebase\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u7d50\u69cb\u5b9f\u88c5\u65b9\u6cd5\u304c\u9055\u3063\u3066\u82e6\u2026","rel":"","context":"firebase","block_context":{"text":"firebase","link":"https:\/\/snow-cat.net\/?cat=25"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":293,"url":"https:\/\/snow-cat.net\/?p=293","url_meta":{"origin":191,"position":4},"title":"django\u3067\u30e6\u30fc\u30b6\u30e2\u30c7\u30eb\u3092\u62e1\u5f35\u3059\u308b\u65b9\u6cd5","author":"hiro","date":"2019\u5e748\u670815\u65e5","format":false,"excerpt":"\u3086\u304d\u306d\u3053\u3067\u3059\u3002 \u4ee5\u524ddjango\u306e\u30e6\u30fc\u30b6\u30e2\u30c7\u30eb\u306e\u62e1\u5f35\u65b9\u6cd5\u3092\u8abf\u3079\u3066\u7d50\u69cb\u82e6\u52b4\u3057\u305f\u306e\u3067\u30e6\u30fc\u30b6\u30e2\u30c7\u30eb\u306e\u62e1\u5f35\u65b9\u2026","rel":"","context":"\u305d\u306e\u4ed6\u3082\u308d\u3082\u308d","block_context":{"text":"\u305d\u306e\u4ed6\u3082\u308d\u3082\u308d","link":"https:\/\/snow-cat.net\/?cat=1"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":107,"url":"https:\/\/snow-cat.net\/?p=107","url_meta":{"origin":191,"position":5},"title":"vue.js\u306e\u30e1\u30bd\u30c3\u30c9\u3068API","author":"hiro","date":"2018\u5e7412\u67082\u65e5","format":false,"excerpt":"\u3053\u3093\u306b\u3061\u306f\u3001\u3086\u304d\u306d\u3053\u3067\u3059\u3002 \u6700\u8fd1Vue.js\u3092\u5c0e\u5165\u3057\u3066\u958b\u767a\u3092\u9032\u3081\u3066\u3044\u308b\u306e\u3067\u3001\u6280\u8853\u3092\u307e\u3068\u3081\u3066\u3044\u304d\u305f\u3044\u3068\u2026","rel":"","context":"JavaScript","block_context":{"text":"JavaScript","link":"https:\/\/snow-cat.net\/?cat=11"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/snow-cat.net\/index.php?rest_route=\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/snow-cat.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/snow-cat.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/snow-cat.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/snow-cat.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191"}],"version-history":[{"count":5,"href":"https:\/\/snow-cat.net\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":197,"href":"https:\/\/snow-cat.net\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions\/197"}],"wp:attachment":[{"href":"https:\/\/snow-cat.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/snow-cat.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/snow-cat.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}