官术网_书友最值得收藏!

Writing Clean and Lean Code with Vue

In this section, we'll be investigating how a Vue.js instance works at a lower level by looking at how this is handled by Vue. We'll also be looking at the various properties on our instance such as data, computed, watch, as well as best practices when using each one. Furthermore, we'll be looking at the various lifecycle hooks available within our Vue instance, allowing us to call particular functions at various stages of our application. Finally, we'll be investigating the Document Object Model (DOM) and why Vue implements a Virtual DOM for enhanced performance.

By the end of this chapter you will:

  • Have a greater understanding of how this keyword works within JavaScript
  • Understand how Vue proxies this keyword within Vue instances
  • Use data properties to create reactive bindings
  • Use computed properties to create declarative functions based on our data model
  • Use watched properties to access asynchronous data and build upon the foundations of computed properties
  • Use lifecycle hooks to activate functionality at particular stages of the Vue lifecycle
  • Investigate the DOM and Virtual DOM for an understanding of how Vue renders data to the screen

To begin, let's start off by looking into how this works within JavaScript and how this relates to the context within our Vue instances.

主站蜘蛛池模板: 溧阳市| 临洮县| 德令哈市| 汉源县| 司法| 保靖县| 当雄县| 长子县| 河东区| 济宁市| 辽宁省| 平南县| 读书| 太和县| 遂平县| 平凉市| 延寿县| 沁阳市| 贵港市| 阿图什市| 浏阳市| 汕头市| 色达县| 陇南市| 姚安县| 临泽县| 六枝特区| 芮城县| 襄垣县| 酒泉市| 河池市| 高台县| 资源县| 连城县| 乌兰浩特市| 永泰县| 防城港市| 宝清县| 依兰县| 镇原县| 钟山县|