I am new here, and new with ember.js.
I’ve got a problem with some simple tasks like - how to make a component and than nest it into template/route (I have no idea whats its name)
I created component (for example) with code:
<h1>hello</h1>
I called this component “hello” - file .hbs
hello.hbs.
I thought it will be work if I put into bigger section (into templates I generated by route terminal command) smth like:
{{hello}} - and the browser will show on the screen H1 header with text “hello”, but It didn’t - could you tell me why? (Please dont tell me I should look for answers into docs - I spend some time there already)
You don’t need a JS file! Just the file you have, but you need the filename to have a hyphen in the name, and then invoke it with the new name. (Or use Angle Bracket invocation, as @NullVoxPopuli suggested)