cuba-app is a mandatory element for any CUBA Polymer application.
It should be defined in your application as early as possible.
cuba-app
contains initialization logic that is required by other CUBA Polymer components.
That is, all other CUBA Polymer components won’t work if cuba-app
is absent in your code.
Below is an example of using cuba-app
element.
index.html
<html>
<head>
<link rel="import" href="src/cuba/init/empty-app.html">
<script src="bower_components/webcomponentsjs/webcomponents-loader.js"></script>
</head>
<body>
<empty-app></empty-app>
</body>
</html>
src/cuba/init/empty-app.html
link:../../../source/polymer-build/src/cuba/init/empty-app.html[role=include]
After including cuba-app
, you can use all other CUBA Polymer components.