.component('app', {
template:
'<nav>
' +
' <a>Crisis Center</a>
' +
' <a ng-link="['Heroes']">Heroes</a>
' +
'</nav>
' +
'<ng-outlet></ng-outlet>
',
$routeConfig: [
{path: '/heroes/...', name: 'Heroes', component: 'heroes'},
]
});