Angular(ãã¼ã¸ã§ã³ï¼ä»¥é)ã®åå¼·ããã®ï¼ã§ã
ååã«ç¶ã使ç¨ç¨éããããããªãã
ããããã¦ä½¿ãå¯è½æ§ãããã®ã§ã¡ã¢ã¨ãã¦æ®ãã¾ã
ç¬èªã¿ã°ãããªãã¦divã¿ã°ãã»ã¬ã¯ã¿ã¼ã¨ãã¦ä½¿ã
åæã¨ãã¦
componentã«è¨è¼ãã¦ããã»ã¬ã¯ã¿ã¼ã¨htmlãã¤ãªãã§ããã®ã¯
tsãã¡ã¤ã«ã®ã»ã¬ã¯ã¿ã¼ã¨
@Component({ selector: 'app-servers',//âãã templateUrl: './servers.component.html' })
htmlã®ç¬èªã¿ã°
<app-servers></app-servers>âãã
ã«ãªãã¾ã
ãã®ç¬èªã¿ã°ãããªãã¦ãdivã¿ã°ã«ãã¾ã
<app-servers></app-servers> â <div app-servers=""></div>
ã»ã¬ã¯ã¿ã¼ã®é¨åã«ã«ãã³ãã¤ãã¾ã
selector: 'app-servers' â selector: '[app-servers]'
ããã§divã¿ã°ã§ãçµã³ã¤ãããã¨ã§ããããã§ã
classã§ããããã¨ãã人
<app-servers></app-servers> â <div class="app-servers"></div>
ã»ã¬ã¯ã¿ã¼ã®é¨åã«ã.ãããããã¤ãã¾ã
selector: 'app-servers' â selector: '.app-servers'
ã©ãã§ä½¿ãã®ãã»ã»ã»ç解ãã¦ãã¾ãã
ããã¾ãã
Angular2ã«ããã¢ãã³Webéçº TypeScriptã使ã£ãåºæ¬ããã°ã©ãã³ã°
- ä½è : æ«æ¬¡ç«
- åºç社/ã¡ã¼ã«ã¼: æ¥çµBP社
- çºå£²æ¥: 2017/01/18
- ã¡ãã£ã¢: åè¡æ¬
- ãã®ååãå«ãããã° (1件) ãè¦ã
AngularJS 2: Simple Guide on Web App Development (2nd edition) (English Edition)
- ä½è : Daniel Green
- çºå£²æ¥: 2015/11/11
- ã¡ãã£ã¢: Kindleç
- ãã®ååãå«ãããã°ãè¦ã
次ã¯ãã¼ã¿ãã¤ãã£ã³ã°ã«ã¤ãã¦ã§ã
masalib.hatenablog.com