I'm using AngularJS 1.5.11.
I can't seem to get my component wired-up correctly. If I hard-code a template property, it works:
$stateProvider.state("dashboard.expense", {
url: "/expense",
template: `<div>Geddy Lee</div>`
})
^^ That indeed shows Geddy Lee on the page.
But as soon as I point it to a component, no rendering occurs:
$stateProvider.state("dashboard.expense", {
url: "/expense",
component: "expenseReportsComponent"
})
I'm keeping the component simple, just to see if I can get it to render:
module.component('expenseReportsComponent', {
template: `<div>Geddy Lee</div>`
});
^^ Geddy Lee is not displayed.
There are no console errors. I've tried a variety of changes, but nothing seems to work. What am I missing?