| Index: third_party/pkg/route_hierarchical/example/full/root-view.html
|
| diff --git a/third_party/pkg/route_hierarchical/example/full/root-view.html b/third_party/pkg/route_hierarchical/example/full/root-view.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..996cb33f7a3d5d4fb5a085ce7f65f5b7fec58b5a
|
| --- /dev/null
|
| +++ b/third_party/pkg/route_hierarchical/example/full/root-view.html
|
| @@ -0,0 +1,25 @@
|
| +<!DOCTYPE html>
|
| +
|
| +<html>
|
| + <head>
|
| + <link rel="import" href="home.html">
|
| + <link rel="import" href="company-info-loader.html">
|
| + <link rel="import" href="portfolio.html">
|
| + </head>
|
| + <body>
|
| + <element name="x-root-view" constructor="RootView" extends="div">
|
| + <template>
|
| + <template if="currentRouteName == 'home'">
|
| + <x-home></x-home>
|
| + </template>
|
| + <template if="currentRouteName == 'companyInfo'">
|
| + <x-company-info-loader route="{{route.getRoute('companyInfo')}}"></x-company-info-loader>
|
| + </template>
|
| + <template if="currentRouteName == 'portfolio'">
|
| + <x-porfolio route="{{route.getRoute('portfolio')}}"></x-porfolio>
|
| + </template>
|
| + </template>
|
| + <script type="application/dart" src="root-view.dart"></script>
|
| + </element>
|
| + </body>
|
| +</html>
|
|
|