- Vue.js 2.x by Example
- Mike Street
- 163字
- 2021-07-02 20:00:24
Application space
This is the container for your application and provides a canvas for Vue to work in. All the Vue code will be placed within this tag. The actual tag can be any HTML element - main, section, and so on. The ID of the element needs to be unique, but again, can be anything you wish. This allows you to have multiple Vue instances on one page or identify which Vue instance relates to which Vue code:
<p id="app">
</p>
During the tutorials, this element with the ID will be referred to as the app space or view. It should be noted that all HTML and tags and code for your application should be placed within this container.
Although you can use most HTML tags for your application space, you cannot initialize Vue on the <body> or <HTML> tags - if you do so, Vue will throw a JavaScript error and will fail to initialize. You will have to use an element inside your body.
- Spring Boot 2實戰(zhàn)之旅
- Hyper-V 2016 Best Practices
- Learning Chef
- Android Studio Essentials
- 編程卓越之道(卷3):軟件工程化
- 神經(jīng)網(wǎng)絡(luò)編程實戰(zhàn):Java語言實現(xiàn)(原書第2版)
- Hadoop+Spark大數(shù)據(jù)分析實戰(zhàn)
- PHP 編程從入門到實踐
- aelf區(qū)塊鏈應(yīng)用架構(gòu)指南
- Java持續(xù)交付
- Learn WebAssembly
- Expert Android Programming
- PhoneGap Mobile Application Development Cookbook
- C++新經(jīng)典
- Hands-On Full Stack Development with Go