<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mah666hhh</author_name>
  <author_url>https://blog.hatena.ne.jp/mah666hhh/</author_url>
  <blog_title>スリ飯屋MaLankaのフリーエンジニアな日々</blog_title>
  <blog_url>https://www.malanka.org/</blog_url>
  <categories>
    <anon>技術関連</anon>
    <anon>技術関連 - Vue.js</anon>
  </categories>
  <description>１、共通化したいmethodsやcomputed等を記述したファイルを作成する。 例として utils.js を作成します。 パスは javascript/packs/mixins/utils.js とします。 以下は、moment.jsで日時をparseする関数です。 # utils.js import moment from 'moment' export default { methods: { startParse: function(start) { return moment(start).format('YYYY-MM-DD') }, endParse: function(end) { return moment(end).format('YYYY-MM-DD') } } } ２、１のmethodsを使用するコンポーネントに以下を記述します。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.malanka.org%2Fentry%2FCommon-Vue-js-methods-and-computed&quot; title=&quot;【Vue.js】methodsやcomputedを共通化(mixin)する  - スリ飯屋MaLankaのフリーエンジニアな日々&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mah666hhh/20201119/20201119134410.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-11-19 13:45:47</published>
  <title>【Vue.js】methodsやcomputedを共通化(mixin)する </title>
  <type>rich</type>
  <url>https://www.malanka.org/entry/Common-Vue-js-methods-and-computed</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
