- KnockoutJS Essentials
- Jorge Ferrando
- 159字
- 2021-07-23 20:16:16
Chapter 2. KnockoutJS Templates
Once we have built our Catalog, it is time to add a cart to our application. When our code begins to grow, it's necessary to split it in several parts to keep it maintainable. When we split JavaScript code, we are talking about modules, classes, function, libraries, and so on. When we talk about HTML, we call these parts templates.
KnockoutJS has a native template engine that we can use to manage our HTML. It is very simple, but also has a big inconvenience: templates, it should be loaded in the current HTML page. This is not a problem if our app is small, but it could be a problem if our application begins to need more and more templates.
In this chapter, we are going to design our templates with the native engine and then we will speak about mechanisms and external libraries we can use to improve the Knockout template engine.
- 機(jī)器學(xué)習(xí)系統(tǒng):設(shè)計和實現(xiàn)
- Go語言高效編程:原理、可觀測性與優(yōu)化
- Vue.js 3.x從入門到精通(視頻教學(xué)版)
- Learning SAP Analytics Cloud
- INSTANT Weka How-to
- Amazon S3 Cookbook
- C語言程序設(shè)計
- JavaCAPS基礎(chǔ)、應(yīng)用與案例
- ASP.NET開發(fā)與應(yīng)用教程
- 小程序,巧應(yīng)用:微信小程序開發(fā)實戰(zhàn)(第2版)
- JavaScript腳本特效編程給力起飛
- Machine Learning for Developers
- iOS開發(fā)項目化入門教程
- SEO教程:搜索引擎優(yōu)化入門與進(jìn)階(第3版)
- Clojure High Performance Programming(Second Edition)