{"id":7515,"date":"2017-04-03T01:37:29","date_gmt":"2017-04-02T16:37:29","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=7515"},"modified":"2017-04-03T03:28:25","modified_gmt":"2017-04-02T18:28:25","slug":"angular2%e3%81%ae%e5%a7%8b%e3%82%81%e6%96%b9%e3%80%82angular2-%e5%85%ac%e5%bc%8f%e3%83%81%e3%83%a5%e3%83%bc%e3%83%88%e3%83%aa%e3%82%a2%e3%83%ab-multiple-components%ef%bc%88%e7%b0%a1%e5%8d%98","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=7515","title":{"rendered":"Angular2\u306e\u59cb\u3081\u65b9\u3002Angular2 \u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb &#8211; Multiple Components\uff08\u7c21\u5358\u306a\u548c\u8a33\uff09"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2017\/04\/angular_multi.png\" alt=\"\" width=\"600\" height=\"300\" class=\"alignnone size-full wp-image-7745\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/2017\/04\/angular_multi.png 600w, https:\/\/www.webcyou.com\/wp-content\/uploads\/2017\/04\/angular_multi-300x150.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h4>MULTIPLE COMPONENTS<\/h4>\n<p>\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8\u306f\u3001\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8\u306e\u7c21\u5358\u306a\u548c\u8a33\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/angular.io\/docs\/ts\/latest\/tutorial\/toh-pt3.html\" target=\"_blank\">Angular2 tutorial | MULTIPLE COMPONENTS<\/a><\/p>\n<p><strong>\u524d\u56de<\/strong><\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/?p=7512\">Angular2\u306e\u59cb\u3081\u65b9\u3002Angular2 \u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb \u2013 Master\/Detail\uff08\u7c21\u5358\u306a\u548c\u8a33\uff09<\/a><\/p>\n<p><strong>\u305d\u306e\u4ed6<\/strong><\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/?p=7553\">Angular2\u306e\u59cb\u3081\u65b9\u3002Angular2 \u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb \u2013 SETUP FOR LOCAL DEVELOPMENT\uff08\u7c21\u5358\u306a\u548c\u8a33\uff09<\/a><a href=\"https:\/\/www.webcyou.com\/?p=7507\">Angular2\u306e\u59cb\u3081\u65b9\u3002Angular2 \u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb \u2013 Introduction\uff08\u7c21\u5358\u306a\u548c\u8a33\uff09<\/a><br \/>\n<a href=\"https:\/\/www.webcyou.com\/?p=7510\">Angular2\u306e\u59cb\u3081\u65b9\u3002Angular2 \u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb \u2013 The Hero Editor\uff08\u7c21\u5358\u306a\u548c\u8a33\uff09<\/a><\/p>\n<p>\u79c1\u305f\u3061\u306e\u30a2\u30d7\u30ea\u306f\u6210\u9577\u3057\u3066\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u518d\u5229\u7528\u3057\u3001\u30c7\u30fc\u30bf\u3092\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u6e21\u3057\u3001\u3088\u308a\u518d\u5229\u7528\u53ef\u80fd\u306a\u30ea\u30bd\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u304c\u3067\u3066\u304d\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d2\u30fc\u30ed\u30fc\u306e\u30ea\u30b9\u30c8\u3092\u30d2\u30fc\u30ed\u30fc\u306e\u8a73\u7d30\u304b\u3089\u5206\u96e2\u3057\u3066\u3001\u8a73\u7d30\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u518d\u5229\u7528\u53ef\u80fd\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Run the\u00a0<a href=\"https:\/\/angular.io\/resources\/live-examples\/toh-3\/ts\/eplnkr.html\" target=\"_blank\">live example<\/a>\u00a0for this part.<\/p>\n<h4>Where We Left Off<\/h4>\n<p>\u30d2\u30fc\u30ed\u30fc\u306e\u30c4\u30a2\u30fc\u3092\u7d9a\u3051\u308b\u524d\u306b\u3001\u6b21\u306e\u69cb\u9020\u3092\u6301\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f\u3001\u524d\u306e\u7ae0\u306b\u623b\u3063\u3066\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">angular-tour-of-heroes\r\n\u251c\u2500\u2500src\r\n\u2502 \u251c\u2500\u2500app\r\n\u2502 \u2502  \u251c\u2500\u2500app.component.ts\r\n\u2502 \u2502  \u2514\u2500\u2500app.module.ts\r\n\u2502 \u251c\u2500\u2500main.ts\r\n\u2502 \u251c\u2500\u2500index.html\r\n\u2502 \u251c\u2500\u2500styles.css\r\n\u2502 \u251c\u2500\u2500systemjs.config.js\r\n\u2502 \u2514\u2500\u2500tsconfig.json\r\n\u251c\u2500\u2500node_modules ...\r\n\u2514\u2500\u2500package.json<\/pre>\n<h4>Make a hero detail component<\/h4>\n<p>hero-detail.component.ts\u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3092 app \/\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u65b0\u3057\u3044HeroDetailComponent\u3092\u4fdd\u6301\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u540d\u3068\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u540d\u306f\u3001<a href=\"https:\/\/angular.io\/docs\/ts\/latest\/guide\/style-guide.html#!#naming\" target=\"_blank\">\u30b9\u30bf\u30a4\u30eb\u30ac\u30a4\u30c9<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u6a19\u6e96\u306b\u5f93\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30af\u30e9\u30b9\u540d\u306f\u3001\u30ad\u30e3\u30e1\u30eb\u30b1\u30fc\u30b9\u306e\u5927\u6587\u5b57\u3067\u66f8\u304b\u308c\u3001 &#8220;Component&#8221;\u3068\u3044\u3046\u5358\u8a9e\u3067\u7d42\u308f\u308b\u3079\u304d\u3067\u3059\u3002<\/p>\n<p>\u4e3b\u4eba\u516c\u306e\u8a73\u7d30\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30af\u30e9\u30b9\u306f<strong>HeroDetailComponent<\/strong>\u3067\u3059\u3002<\/p>\n<p>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u306f\u3001\u30c0\u30c3\u30b7\u30e5\u8a18\u53f7\u3067\u7db4\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5404\u5358\u8a9e\u306f\u30c0\u30c3\u30b7\u30e5\u3067\u533a\u5207\u308a\u3001.component.ts\u3067\u7d42\u308f\u308a\u307e\u3059\u3002 <\/p>\n<p>HeroDetailComponent\u30af\u30e9\u30b9\u306fhero-detail.component.ts\u30d5\u30a1\u30a4\u30eb\u306b\u5165\u308c\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u3088\u3046\u306bHeroDetailComponent\u306e\u66f8\u304d\u8fbc\u307f\u3092\u958b\u59cb\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/hero-detail.component.ts (initial version)<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">import { Component } from '@angular\/core';\r\n\r\n@Component({\r\n  selector: 'hero-detail',\r\n})\r\nexport class HeroDetailComponent {\r\n}<\/pre>\n<p>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u306b\u306f\u3001\u5e38\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30b7\u30f3\u30dc\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>@Component\u30c7\u30b3\u30ec\u30fc\u30bf\u306f\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 CSS\u30bb\u30ec\u30af\u30bf\u540d\u3001hero-detail\u306f\u3001\u89aa\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5185\u3053\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u7279\u5b9a\u3059\u308b\u8981\u7d20\u30bf\u30b0\u306b\u30de\u30c3\u30c1\u3057\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u30da\u30fc\u30b8\u306e\u7d42\u308f\u308a\u8fd1\u304f\u306b\u3001\u3042\u306a\u305f\u306fAppComponent\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b<hero-detail>\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u5e38\u306b\u4ed6\u306e\u5834\u6240\u306bimport\u3059\u308b\u305f\u3081\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30af\u30e9\u30b9\u3092export\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h5>Hero detail template<\/h5>\n<p>\u30d2\u30fc\u30ed\u30fc\u8a73\u7d30\u30d3\u30e5\u30fc\u3092 <strong>HeroDetailComponent<\/strong>\u306b\u79fb\u52d5\u3059\u308b\u306b\u306f\u3001\u30d2\u30fc\u30ed\u30fc\u8a73\u7d30\u30b3\u30f3\u30c6\u30f3\u30c4\u3092AppComponent\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4e0b\u90e8\u304b\u3089\u5207\u308a\u53d6\u308a\u3001@Component\u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u65b0\u3057\u3044\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<p><strong>HeroDetailComponent<\/strong>\u306b\u306f\u3001\u9078\u629e\u3055\u308c\u305f\u30d2\u30fc\u30ed\u30fc\u3067\u306f\u306a\u304f\u3001\u30d2\u30fc\u30ed\u30fc\u304c\u3042\u308a\u307e\u3059\u3002 &#8220;selectedHero&#8221;\u3068\u3044\u3046\u5358\u8a9e\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u3069\u3053\u306b\u3067\u3082\u7f6e\u3044\u3066 &#8220;hero&#8221;\u3068\u3044\u3046\u5358\u8a9e\u306b\u7f6e\u304d\u63db\u3048\u307e\u3059\u3002\u5b8c\u4e86\u3057\u305f\u3089\u3001\u65b0\u3057\u3044\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>src\/app\/hero-detail.component.ts (template)<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">@Component({\r\n  selector: 'hero-detail',\r\n  template: `\r\n    &lt;div *ngIf=&quot;hero&quot;&gt;\r\n      &lt;h2&gt;{{hero.name}} details!&lt;\/h2&gt;\r\n      &lt;div&gt;&lt;label&gt;id: &lt;\/label&gt;{{hero.id}}&lt;\/div&gt;\r\n      &lt;div&gt;\r\n        &lt;label&gt;name: &lt;\/label&gt;\r\n        &lt;input &#x5B;(ngModel)]=&quot;hero.name&quot; placeholder=&quot;name&quot;\/&gt;\r\n      &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n  `\r\n})<\/pre>\n<h5>Add the hero property<\/h5>\n<p><strong>HeroDetailComponent<\/strong>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306ehero\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30d0\u30a4\u30f3\u30c9\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3092<strong>HeroDetailComponent<\/strong>\u30af\u30e9\u30b9\u306b\u6b21\u306e\u3088\u3046\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p><strong>src\/app\/hero-detail.component.ts (hero property)<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">hero: Hero;<\/pre>\n<p>\u30d2\u30fc\u30ed\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u306f\u30d2\u30fc\u30ed\u30fc\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u3057\u3066\u30bf\u30a4\u30d7\u3055\u308c\u307e\u3059\u3002 Hero\u30af\u30e9\u30b9\u306f\u307e\u3060<strong>app.component.ts<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4eca\u3001Hero\u30af\u30e9\u30b9\u3092\u53c2\u7167\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b2\u3064\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002 <\/p>\n<p><a href=\"https:\/\/angular.io\/docs\/ts\/latest\/guide\/style-guide.html#!#rule-of-one\" target=\"_blank\">Angular\u30b9\u30bf\u30a4\u30eb\u30ac\u30a4\u30c9<\/a>\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3054\u3068\u306b1\u3064\u306e\u30af\u30e9\u30b9\u3092\u63a8\u5968\u3057\u307e\u3059\u3002<\/p>\n<p>Hero\u30af\u30e9\u30b9\u3092app.component.ts\u304b\u3089\u72ec\u81ea\u306e<strong>hero.ts<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><strong>src\/app\/hero.ts<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">export class Hero {\r\n  id: number;\r\n  name: string;\r\n}<\/pre>\n<p>Hero\u30af\u30e9\u30b9\u304c\u72ec\u81ea\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u3063\u305f\u306e\u3067\u3001<strong>AppComponent<\/strong>\u3068\u3001<strong>HeroDetailComponent<\/strong>\u306f\u305d\u308c\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 <\/p>\n<p><strong>app.component.ts<\/strong>\u30d5\u30a1\u30a4\u30eb\u3068\u3001<strong>hero-detail.component.ts<\/strong>\u30d5\u30a1\u30a4\u30eb\u306e\u4e0a\u90e8\u306b\u6b21\u306eimport\u6587\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">import { Hero } from '.\/hero';<\/pre>\n<h5>The hero property is an input property<\/h5>\n<p>\u3053\u306e\u30da\u30fc\u30b8\u306e\u5f8c\u534a\u3067\u306f\u3001\u89aaAppComponent\u306f\u3001\u9078\u629e\u3055\u308c\u305f\u30d2\u30fc\u30ed\u30fc\u3092<strong>HeroDetailComponent<\/strong>\u306e\u30d2\u30fc\u30ed\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30d0\u30a4\u30f3\u30c9\u3057\u3066\u8868\u793a\u3059\u308b\u30d2\u30fc\u30ed\u30fc\u3092\u5b50\u4f9b\u306e<strong>HeroDetailComponent<\/strong>\u306b\u4f1d\u3048\u307e\u3059\u3002\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;hero-detail &#x5B;hero]=&quot;selectedHero&quot;&gt;&lt;\/hero-detail&gt;<\/pre>\n<p>\u30d2\u30fc\u30ed\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5468\u308a\u306b\u7b49\u53f7\uff08=\uff09\u306e\u5de6\u5074\u306b\u89d2\u62ec\u5f27\u3092\u7f6e\u304f\u3068\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u5f0f\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5165\u529b\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u5ba3\u8a00\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u3001Angular\u306f\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3092\u62d2\u5426\u3057\u3001\u30a8\u30e9\u30fc\u3092\u30b9\u30ed\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u5165\u529b\u30b7\u30f3\u30dc\u30eb\u3092\u542b\u3081\u308b\u305f\u3081\u306b <strong>@angular\/core<\/strong> \u306eimport\u6587\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">import { Component, Input } from '@angular\/core';<\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u30d2\u30fc\u30ed\u30fc\u306f\u3001\u524d\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305f@Input\u30c7\u30b3\u30ec\u30fc\u30bf\u3092\u524d\u306b\u7f6e\u3044\u3066\u3001\u5165\u529b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3042\u308b\u3053\u3068\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002<\/p>\n<p><strong>src\/app\/hero-detail.component.ts (excerpt)<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">@Input() hero: Hero;<\/pre>\n<p>&#8220;&#8220;<br \/>\n\u5c5e\u6027\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/angular.io\/docs\/ts\/latest\/guide\/attribute-directives.html#!#why-input\" target=\"_blank\">\u5c5e\u6027\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u30da\u30fc\u30b8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&#8220;&#8220;<\/p>\n<p>\u3053\u308c\u3067\u7d42\u4e86\u3068\u306a\u308a\u307e\u3059\u3002\u30d2\u30fc\u30ed\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u306fHeroDetailComponent\u30af\u30e9\u30b9\u306e\u552f\u4e00\u306e\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">export class HeroDetailComponent {\r\n  @Input() hero: Hero;\r\n}<\/pre>\n<p>\u305d\u308c\u304c\u884c\u3046\u3053\u3068\u306f\u3001\u30d2\u30fc\u30ed\u30fc\u5165\u529b\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u30d2\u30fc\u30ed\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d7\u3051\u53d6\u3063\u305f\u5f8c\u3001\u305d\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u305d\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u3053\u3068\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u306b\u306f\u5b8c\u5168\u306aHeroDetailComponent\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><strong>src\/app\/hero-detail.component.ts<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">import { Component, Input } from '@angular\/core';\r\nimport { Hero } from '.\/hero';\r\n@Component({\r\n  selector: 'hero-detail',\r\n  template: `\r\n    &lt;div *ngIf=&quot;hero&quot;&gt;\r\n      &lt;h2&gt;{{hero.name}} details!&lt;\/h2&gt;\r\n      &lt;div&gt;&lt;label&gt;id: &lt;\/label&gt;{{hero.id}}&lt;\/div&gt;\r\n      &lt;div&gt;\r\n        &lt;label&gt;name: &lt;\/label&gt;\r\n        &lt;input &#x5B;(ngModel)]=&quot;hero.name&quot; placeholder=&quot;name&quot;\/&gt;\r\n      &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n  `\r\n})\r\nexport class HeroDetailComponent {\r\n  @Input() hero: Hero;\r\n}<\/pre>\n<h4>Declare HeroDetailComponent in the AppModule<\/h4>\n<p>\u3059\u3079\u3066\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u30011\u3064\u306e\u552f\u4e00\u306eAngular\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5ba3\u8a00\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30c7\u30a3\u30bf\u3067app.module.ts\u3092\u958b\u304d\u3001\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306bHeroDetailComponent\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p><strong>src\/app\/app.module.ts<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">import { HeroDetailComponent } from '.\/hero-detail.component';<\/pre>\n<p>HeroDetailComponent\u3092\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5ba3\u8a00\u914d\u5217\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p><strong>src\/app\/app.module.ts<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">declarations: &#x5B;\r\n  AppComponent,\r\n  HeroDetailComponent\r\n],<\/pre>\n<p>\u4e00\u822c\u306b\u3001\u5ba3\u8a00\u914d\u5217\u306b\u306f\u3001\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u5c5e\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3001\u30d1\u30a4\u30d7\u3001\u304a\u3088\u3073\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u30ea\u30b9\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ed6\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u53c2\u7167\u3059\u308b\u306b\u306f\u3001\u305d\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u5185\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u5ba3\u8a00\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001<strong>AppComponent<\/strong>\u3068\u3001<strong>HeroDetailComponent<\/strong>\u306e2\u3064\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u307f\u3092\u5ba3\u8a00\u3057\u307e\u3059\u3002<\/p>\n<p>&#8220;&#8220;`<\/p>\n<p>NgModules\u30ac\u30a4\u30c9\u306e<a href=\"https:\/\/angular.io\/docs\/ts\/latest\/guide\/ngmodule.html\" target=\"_blank\">Angular\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u8a73\u7d30<\/a>\u3002<br \/>\n&#8220;&#8220;`<\/p>\n<h4>Add the HeroDetailComponent to the AppComponent<\/h4>\n<p>AppComponent\u306f\u307e\u3060 master\/detail \u30d3\u30e5\u30fc\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u305d\u306e\u90e8\u5206\u3092\u5207\u308a\u53d6\u308b\u524d\u306b\u3001\u30d2\u30fc\u30ed\u30fc\u306e\u8a73\u7d30\u3092\u72ec\u81ea\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u3067\u3057\u305f\u3002<\/p>\n<p>\u4eca\u5ea6\u306f<strong>HeroDetailComponent<\/strong>\u306b\u59d4\u8b72\u3057\u307e\u3059\u3002<\/p>\n<p>hero-detail\u306f\u3001<strong>HeroDetailComponent<\/strong>\u30e1\u30bf\u30c7\u30fc\u30bf\u306eCSS\u30bb\u30ec\u30af\u30bf\u3067\u3042\u308b\u3053\u3068\u3092\u601d\u3044\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001HeroDetailComponent\u3092\u8868\u3059\u8981\u7d20\u306e\u30bf\u30b0\u540d\u3067\u3059\u3002<\/p>\n<p>\u30d2\u30fc\u30ed\u30fc\u8a73\u7d30\u30d3\u30e5\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u3001<strong>AppComponent<\/strong>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4e0b\u90e8\u306b<\/p>\n<pre><hero-detail><\/pre>\n<p>\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>AppComponent\u306eselectedHero\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u3001 <strong>HeroDetailComponent<\/strong>\u306e\u30d2\u30fc\u30ed\u30fc\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30d0\u30a4\u30f3\u30c9\u3057\u3066\u3001\u30de\u30b9\u30bf\u30fcAppComponent\u3092<strong>HeroDetailComponent<\/strong>\u3068\u8abf\u6574\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app.component.html (excerpt)<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;hero-detail &#x5B;hero]=&quot;selectedHero&quot;&gt;&lt;\/hero-detail&gt;<\/pre>\n<p>selectedHero\u304c\u5909\u66f4\u3055\u308c\u308b\u305f\u3073\u306b\u3001HeroDetailComponent\u306f\u65b0\u3057\u3044\u30d2\u30fc\u30ed\u30fc\u3092\u53d6\u5f97\u3057\u3066\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4fee\u6b63\u3055\u308c\u305fAppComponent\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>app.component.ts (excerpt)<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">template: `\r\n  &lt;h1&gt;{{title}}&lt;\/h1&gt;\r\n  &lt;h2&gt;My Heroes&lt;\/h2&gt;\r\n  &lt;ul class=&quot;heroes&quot;&gt;\r\n    &lt;li *ngFor=&quot;let hero of heroes&quot;\r\n      &#x5B;class.selected]=&quot;hero === selectedHero&quot;\r\n      (click)=&quot;onSelect(hero)&quot;&gt;\r\n      &lt;span class=&quot;badge&quot;&gt;{{hero.id}}&lt;\/span&gt; {{hero.name}}\r\n    &lt;\/li&gt;\r\n  &lt;\/ul&gt;\r\n  &lt;hero-detail &#x5B;hero]=&quot;selectedHero&quot;&gt;&lt;\/hero-detail&gt;\r\n`,<\/pre>\n<h4>What changed?<\/h4>\n<p>\u4ee5\u524d\u306e\u3088\u3046\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30d2\u30fc\u30ed\u30fc\u540d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u305f\u3073\u306b\u3001\u30d2\u30fc\u30ed\u30fc\u306e\u8a73\u7d30\u304c\u30d2\u30fc\u30ed\u30fc\u30ea\u30b9\u30c8\u306e\u4e0b\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u4eca\u3001HeroDetailView\u306f\u305d\u308c\u3089\u306e\u8a73\u7d30\u3092\u63d0\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5143\u306eAppComponent\u30922\u3064\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u3001\u73fe\u72b6\u3082\u4eca\u5f8c\u306b\u3082\u5229\u76ca\u304c\u3067\u307e\u3059\u3002<\/p>\n<p>\u30fbAppComponent\u306e\u8cac\u4efb\u3092\u8efd\u6e1b\u3057\u3066AppComponent\u3092\u5358\u7d14\u5316\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30fb\u89aaAppComponent\u306b\u89e6\u308c\u308b\u3053\u3068\u306a\u304f\u3001HeroDetailComponent\u3092\u8c4a\u304b\u306a\u30d2\u30fc\u30ed\u30fc\u30a8\u30c7\u30a3\u30bf\u306b\u62e1\u5f35\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30fb\u30d2\u30fc\u30ed\u30fc\u8a73\u7d30\u30d3\u30e5\u30fc\u306b\u89e6\u308c\u308b\u3053\u3068\u306a\u304fAppComponent\u3092\u62e1\u5f35\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30fb\u5c06\u6765\u306e\u89aa\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067HeroDetailComponent\u3092\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h5>Review the app structure<\/h5>\n<p>\u6b21\u306e\u69cb\u9020\u3092\u6301\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">angular-tour-of-heroes\r\n\u251c\u2500\u2500src\r\n\u2502 \u251c\u2500\u2500app\r\n\u2502 \u2502  \u251c\u2500\u2500app.component.ts\r\n\u2502 \u2502  \u251c\u2500\u2500app.module.ts\r\n\u2502 \u2502  \u251c\u2500\u2500hero.ts\r\n\u2502 \u2502  \u2514\u2500\u2500hero-detail.component.ts\r\n\u2502 \u251c\u2500\u2500main.ts\r\n\u2502 \u251c\u2500\u2500index.html\r\n\u2502 \u251c\u2500\u2500styles.css\r\n\u2502 \u251c\u2500\u2500systemjs.config.js\r\n\u2502 \u2514\u2500\u2500tsconfig.json\r\n\u251c\u2500\u2500node_modules ...\r\n\u2514\u2500\u2500package.json<\/pre>\n<p>\u3053\u306e\u30da\u30fc\u30b8\u3067\u89e3\u8aac\u3059\u308b\u30b3\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p><strong>src\/app\/hero-detail.component.ts<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">import { Component, Input } from '@angular\/core';\r\nimport { Hero } from '.\/hero';\r\n@Component({\r\n  selector: 'hero-detail',\r\n  template: `\r\n    &lt;div *ngIf=&quot;hero&quot;&gt;\r\n      &lt;h2&gt;{{hero.name}} details!&lt;\/h2&gt;\r\n      &lt;div&gt;&lt;label&gt;id: &lt;\/label&gt;{{hero.id}}&lt;\/div&gt;\r\n      &lt;div&gt;\r\n        &lt;label&gt;name: &lt;\/label&gt;\r\n        &lt;input &#x5B;(ngModel)]=&quot;hero.name&quot; placeholder=&quot;name&quot;\/&gt;\r\n      &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n  `\r\n})\r\nexport class HeroDetailComponent {\r\n  @Input() hero: Hero;\r\n}<\/pre>\n<p><strong>src\/app\/app.component.ts<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">import { Component } from '@angular\/core';\r\nimport { Hero } from '.\/hero';\r\nconst HEROES: Hero&#x5B;] = &#x5B;\r\n  { id: 11, name: 'Mr. Nice' },\r\n  { id: 12, name: 'Narco' },\r\n  { id: 13, name: 'Bombasto' },\r\n  { id: 14, name: 'Celeritas' },\r\n  { id: 15, name: 'Magneta' },\r\n  { id: 16, name: 'RubberMan' },\r\n  { id: 17, name: 'Dynama' },\r\n  { id: 18, name: 'Dr IQ' },\r\n  { id: 19, name: 'Magma' },\r\n  { id: 20, name: 'Tornado' }\r\n];\r\n@Component({\r\n  selector: 'my-app',\r\n  template: `\r\n    &lt;h1&gt;{{title}}&lt;\/h1&gt;\r\n    &lt;h2&gt;My Heroes&lt;\/h2&gt;\r\n    &lt;ul class=&quot;heroes&quot;&gt;\r\n      &lt;li *ngFor=&quot;let hero of heroes&quot;\r\n        &#x5B;class.selected]=&quot;hero === selectedHero&quot;\r\n        (click)=&quot;onSelect(hero)&quot;&gt;\r\n        &lt;span class=&quot;badge&quot;&gt;{{hero.id}}&lt;\/span&gt; {{hero.name}}\r\n      &lt;\/li&gt;\r\n    &lt;\/ul&gt;\r\n    &lt;hero-detail &#x5B;hero]=&quot;selectedHero&quot;&gt;&lt;\/hero-detail&gt;\r\n  `,\r\n  styles: &#x5B;`\r\n    .selected {\r\n      background-color: #CFD8DC !important;\r\n      color: white;\r\n    }\r\n    .heroes {\r\n      margin: 0 0 2em 0;\r\n      list-style-type: none;\r\n      padding: 0;\r\n      width: 15em;\r\n    }\r\n    .heroes li {\r\n      cursor: pointer;\r\n      position: relative;\r\n      left: 0;\r\n      background-color: #EEE;\r\n      margin: .5em;\r\n      padding: .3em 0;\r\n      height: 1.6em;\r\n      border-radius: 4px;\r\n    }\r\n    .heroes li.selected:hover {\r\n      background-color: #BBD8DC !important;\r\n      color: white;\r\n    }\r\n    .heroes li:hover {\r\n      color: #607D8B;\r\n      background-color: #DDD;\r\n      left: .1em;\r\n    }\r\n    .heroes .text {\r\n      position: relative;\r\n      top: -3px;\r\n    }\r\n    .heroes .badge {\r\n      display: inline-block;\r\n      font-size: small;\r\n      color: white;\r\n      padding: 0.8em 0.7em 0 0.7em;\r\n      background-color: #607D8B;\r\n      line-height: 1em;\r\n      position: relative;\r\n      left: -1px;\r\n      top: -4px;\r\n      height: 1.8em;\r\n      margin-right: .8em;\r\n      border-radius: 4px 0 0 4px;\r\n    }\r\n  `]\r\n})\r\nexport class AppComponent {\r\n  title = 'Tour of Heroes';\r\n  heroes = HEROES;\r\n  selectedHero: Hero;\r\n  onSelect(hero: Hero): void {\r\n    this.selectedHero = hero;\r\n  }\r\n}<\/pre>\n<p><strong>src\/app\/hero.ts<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">export class Hero {\r\n  id: number;\r\n  name: string;\r\n}<\/pre>\n<p><strong>app.module.ts<\/strong><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">import { NgModule }      from '@angular\/core';\r\nimport { BrowserModule } from '@angular\/platform-browser';\r\nimport { FormsModule }   from '@angular\/forms';\r\nimport { AppComponent }        from '.\/app.component';\r\nimport { HeroDetailComponent } from '.\/hero-detail.component';\r\n@NgModule({\r\n  imports: &#x5B;\r\n    BrowserModule,\r\n    FormsModule\r\n  ],\r\n  declarations: &#x5B;\r\n    AppComponent,\r\n    HeroDetailComponent\r\n  ],\r\n  bootstrap: &#x5B; AppComponent ]\r\n})\r\nexport class AppModule { }<\/pre>\n<h4>The road you\u2019ve travelled<\/h4>\n<p>\u3053\u306e\u30da\u30fc\u30b8\u3067\u3042\u306a\u305f\u304c\u9054\u6210\u3057\u305f\u3053\u3068\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p>\u30fb\u518d\u5229\u7528\u53ef\u80fd\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30fb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u5165\u529b\u3092\u53d7\u3051\u5165\u308c\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u305f\u3002<\/p>\n<p>\u30fb\u5fc5\u8981\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u6307\u4ee4\u3092Angular\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u5ba3\u8a00\u3059\u308b\u3053\u3068\u3092\u5b66\u3073\u307e\u3057\u305f\u3002 <\/p>\n<p>\u30fbNgModule\u30c7\u30b3\u30ec\u30fc\u30bf\u306e\u5ba3\u8a00\u914d\u5217\u306b\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u30ea\u30b9\u30c8\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30fb\u89aa\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30d0\u30a4\u30f3\u30c9\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u305f\u3002<\/p>\n<p>\u30fb\u3042\u306a\u305f\u306e\u30a2\u30d7\u30ea\u306f\u3053\u306e<a href=\"https:\/\/embed.plnkr.co\/?show=preview\" target=\"_blank\">live example<\/a> \/ <a href=\"https:\/\/angular.io\/resources\/zips\/toh-3\/toh-3.zip\" target=\"_blank\">downloadable example.<\/a>\u306e\u3088\u3046\u306b\u898b\u3048\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<h4>The road ahead<\/h4>\n<p>Tour of Heroes\u30a2\u30d7\u30ea\u306f\u3001\u5171\u6709\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u518d\u5229\u7528\u53ef\u80fd\u3067\u3059\u304c\u3001\u305d\u306e\u30e2\u30c3\u30af\u30c7\u30fc\u30bf\u306f\u307e\u3060AppComponent\u5185\u3067\u30cf\u30fc\u30c9\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u6301\u7d9a\u53ef\u80fd\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u306f\u5225\u306e\u30b5\u30fc\u30d3\u30b9\u306b\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3057\u3001\u30c7\u30fc\u30bf\u3092\u5fc5\u8981\u3068\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u9593\u3067\u5171\u6709\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u30da\u30fc\u30b8\u3067\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002<\/p>\n<h4>Next Step<\/h4>\n<p><a href=\"https:\/\/www.webcyou.com\/?p=7519\">Angular2\u306e\u59cb\u3081\u65b9\u3002Angular2 \u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb \u2013 Services\uff08\u7c21\u5358\u306a\u548c\u8a33\uff09<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MULTIPLE COMPONENTS \u3053\u3061\u3089\u306e\u30da\u30fc\u30b8\u306f\u3001\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8\u306e\u7c21\u5358\u306a\u548c\u8a33\u3067\u3059\u3002 Angular2 tutorial | MULTIPLE COMPONENTS \u524d\u56de Angular2\u306e\u59cb\u3081\u65b9\u3002Angular2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[203],"tags":[171,59,168,176,40,166,37,47,179,107,180,44,45,178,138,78,114,118],"class_list":{"0":"post-7515","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-angular2","7":"tag-android","8":"tag-android-sdk","9":"tag-html","10":"tag-html5","11":"tag-ios-sdk","12":"tag-iphone","13":"tag-iphone-","14":"tag-javascript-2","15":"tag-jquery","16":"tag-mamp","17":"tag-mysql","18":"tag-web","20":"tag-178","21":"tag-138","22":"tag-78","23":"tag-114","24":"tag-118"},"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/7515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7515"}],"version-history":[{"count":13,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/7515\/revisions"}],"predecessor-version":[{"id":7763,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/7515\/revisions\/7763"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}