2
0
Fork 0
es5-ff-spa-loader/example/app_server/www_static/js/controller/page-bar.js

18 lines
673 B
JavaScript
Raw Normal View History

2015-12-23 00:16:54 +00:00
pageRouteInit.push(function ($routeProvider, $locationProvider) {
var tpl = '<div><h2>Bar</h2><p>Welcome to the bar.</p><div class="table-responsive">';
tpl += '<table class="table table-bordered table-hover table-striped"><tbody>';
tpl += '<tr><th>Chair</th><th>Person</th><th>Drinking</th></tr></tbody><tbody>';
tpl += '<tr><td>seat 1</td><td>empty</td><td>none</td></tr>';
tpl += '<tr><td>seat 2</td><td>you</td><td>coffee</td></tr>';
tpl += '<tr><td>seat 3</td><td>cat</td><td>water</td></tr>';
tpl += '</tbody></table></div></div>';
2015-12-23 00:16:54 +00:00
$routeProvider.when('/example-ui/bar', {
template: tpl,
2015-12-23 00:16:54 +00:00
controller: PageFoo
});
});
function PageFoo($scope, $http) {
}