8月メモ・リンク集
8月に調べたことのメモです。
Vue 関連
基礎
- Vue.js 学習メモ - ryotah’s blog
- Vuex 学習メモ - ryotah’s blog
- Nuxt.js 学習メモ - ryotah’s blog
- How to redirect with vue-router? · Issue #1843 · nuxt/nuxt.js · GitHub
- tips
- vue.js - VueJs 2.0 - how to listen for
props
changes - Stack OverflowbeforeUpdate
,updated
でいいかとおもったけどちがった- 上記 hook は
props
に限らない
- 上記 hook は
- Props change will not trigger child component update if props not referred in template · Issue #5325 · vuejs/vue · GitHub
updated
hook means the component did a re-render. If the prop is never used during render, why would you expect the component to re-render when it changes?
- vue.js - What is the difference between updated hook and watchers in VueJS? - Stack Overflow
The lifecycle hooks around update respond to changes in the DOM. Watchers respond to changes in the data.
ちょっと応用
- Vue Mastery
- Evan You on Proxies - Advanced Components | Vue Mastery
- Proxy を利用した場合の話
- Vue のリアクティブシステム - ryotah’s blog
- 動的に Vue インスタンスを append する方法のヒント
- Modal 実装に関して
- Modal - BootstrapVue
- Component | Element
- モーダルコンポーネント — Vue.js
- ミニマムなモーダル
- vue-modal - StackBlitz
- 以下機能を追加したモーダルサンプル
- エスケープキーで閉じる
- 背景(backdrop)クリックで閉じる
show
,shown
,hide
,hidden
イベント発火v-model
を利用した open/hide 操作show()
,hide()
メソッドによる open/hide 操作body
のスクロール防止- (スクロールバーがなくなることによるレイアウトずれに関しては未実装)
- モーダル内にフォーカス固定
- 以下機能を追加したモーダルサンプル
- TypeScript
Angular 関連
- (WIP) Learn Angular - ryotah’s blog
- Angular 学習のためのロードマップ
JavaScript その他
- Proxy
- GitHub - GoogleChrome/proxy-polyfill: Proxy object polyfill
This is a polyfill for the Proxy object, part of ES6. See the MDN docs or Introducing ES2015 Proxies for more information on Proxy itself. Unlike other polyfills, this does not require Object.observe, which is deprecated.
- ECMAScript 2015 の Proxy(Proxies) / Reflect をなんとなく理解する
- GitHub - GoogleChrome/proxy-polyfill: Proxy object polyfill
- Object.observe の死 (ECMAScript の提案取り下げ、V8 からも削除予定) - てっく煮ブログ
- redux Presentational / Container componentの分離 - react-redux.connect()のつかいかた
- ISO 形式 (ISO 8601) の文字列判定 - ryotah’s blog