lundi 17 février 2020

Ember 3.16 Octane - Component not displaying in Application.hbs

I used ember generate to create a header component for a youtube video I am following. I have a few questions -

  1. When I ran ember generate component header, the terminal responded with creating the header.hbs file in app>components, but then skips header.js in app/components. I manually created a header.js file in that directory and if I do an alert() in the js file it works.

  2. I have the following code in my header.hbs file.

<h1>Hello There!</h1>


In my application.hbs file :

<Header/>



thoughts, suggestions? Thank you for any help in advance!




Aucun commentaire:

Enregistrer un commentaire