OLD | NEW |
1 <sky> | 1 <sky> |
2 <import src="flights-app.sky" /> | 2 <import src="flights-app.sky" as="FlightsAppElement"/> |
3 <style> | 3 <style> |
4 sky { | 4 sky { |
5 height: 100%; | 5 height: 100%; |
6 } | 6 } |
7 </style> | 7 </style> |
8 <script> | 8 <script> |
9 // TODO(esprehn): Work around a bug where having <flights-app /> in the | 9 // TODO(esprehn): Work around a bug where having <flights-app /> in the |
10 // page doesn't render anything until the first input event. | 10 // page doesn't render anything until the first input event. |
11 addEventListener("load", function() { | 11 window.addEventListener("load", function() { |
12 document.querySelector("sky").appendChild(document.createElement("flights-
app")); | 12 document.querySelector("sky").appendChild(new FlightsAppElement()); |
13 }); | 13 }); |
14 </script> | 14 </script> |
15 </sky> | 15 </sky> |
OLD | NEW |