Templates
- Created with HTML
- HTML specification compliant
- Defining template data
- Binding content to a template
- Binding to HTML attributes
- Using JavaScript expressions
--------------------------------------------------------------
Defining template data
// js
<script type="text/javascript">
var groler = new Vue({
el: '#growler'
});
data Property
- At design time, represents the schema
- At runtime, serves as the model
growler.data.appName
growler.appName
------------------------------------------------------------------------------------
Loading Data Properties
过程:
注意:
对象格式化:
-----------------------------------------
Binding Content to a Template
http://blog.csdn.net/u012596785/article/details/79479261
http://blog.csdn.net/u012596785/article/details/79479261