angular.js - What is the selector in the angularjs 4 component used for?
黄舟
黄舟 2017-06-13 09:22:51
0
1
799

@Component({
selector: 'hero-detail',
template: `

{{hero.name}} details!

{{hero.id}}


`
})
What is the selector used for?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all (1)
typecho

selectoris the containeroftemplate

Theselectorhere ishero-detail, then the followingtemplatewill be displayed in a container like

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!