- 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.
- 從零開始:數字圖像處理的編程基礎與應用
- C# Programming Cookbook
- Oracle 12c中文版數據庫管理、應用與開發實踐教程 (清華電腦學堂)
- TestNG Beginner's Guide
- PyTorch自然語言處理入門與實戰
- Learning Bayesian Models with R
- Linux網絡程序設計:基于龍芯平臺
- 區塊鏈:以太坊DApp開發實戰
- Data Analysis with Stata
- Learning Selenium Testing Tools(Third Edition)
- FFmpeg入門詳解:音視頻原理及應用
- 自制編程語言
- 碼上行動:用ChatGPT學會Python編程
- MINECRAFT編程:使用Python語言玩轉我的世界
- 機器學習微積分一本通(Python版)