Angular自学笔记(二)显示数据 绑定属性
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                Angular自学笔记(二)显示数据 绑定属性
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.                        
                                顯示數(shù)據(jù)
1.顯示數(shù)據(jù)
ng的模版中,默認(rèn)用雙大括號(hào){{}}綁定組件中的變量顯示出來
import { Component } from '@angular/core'; @Component({selector: 'app-root',template: `<h1>{{title}}</h1><h2>My favorite hero is: {{myHero}}</h2>`總結(jié)
以上是生活随笔為你收集整理的Angular自学笔记(二)显示数据 绑定属性的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: Angular自学笔记(一)ngModu
 - 下一篇: Angular自学笔记(?)Templa