title: Angular 7: What is "template" inside the @Component decorator?
body: <p>What is the use of "template" inside the @Component decorator? I do know how "templateURL" works but I haven't tried writing HTML inside of a component.</p>
  
  <p><a href="https://i.stack.imgur.com/W5LiB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W5LiB.png" alt="enter image description here"></a></p>
  
  <p>What is the advantages of using this instead of templateURLs? Thank you!</p>