I used ember generate to create a header component for a youtube video I am following. I have a few questions -
-
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.
-
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