mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 18:47:30 +00:00
Initial KnockoutSpa template
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<div class='container-fluid'>
|
||||
<div class='row'>
|
||||
<div class='col-sm-3'>
|
||||
<nav-menu params='route: route'></nav-menu>
|
||||
</div>
|
||||
<div class='col-sm-9' data-bind='component: { name: route().page, params: route }'></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,8 @@
|
||||
import * as ko from 'knockout';
|
||||
import * as router from '../../router';
|
||||
|
||||
class AppLayoutViewModel {
|
||||
public route = router.instance().currentRoute;
|
||||
}
|
||||
|
||||
export default { viewModel: AppLayoutViewModel, template: require('./app-layout.html') };
|
||||
Reference in New Issue
Block a user