@Component({ selector: 'song-track', // <song-track></song-track> template: ` <div class="container"> <track-image image="http://..."></track-image> <div class="track-information"> <track-title>{{track}}</track-title> <track-artist>{{artist}}</track-artist> </div> </div>` }) export class SongTrack { }
![Advanced Component styling with Angular (v4+)](https://cdn-ak-scissors.b.st-hatena.com/image/square/f1124849c18236bc6319fd6a8406447a906ac5c8/height=288;version=1;width=512/https%3A%2F%2Fmedia.slid.es%2Fthumbnails%2F3cf00479b9ac0194422e816b66835b42%2Fthumb.jpg%3F765605029)