I'm trying to insert an Ember Component into a specific DOM element: <div id="component"></div>
I currently have this code:
var App = Ember.Application.create();
App.NavigationBarComponent = Ember.Component.extend({
tagName: 'nav'
});
And:
<script type="text/x-handlebars" id="application">
<h1>Component</h1>
</script>
How would I go about doing this?