Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

preboot with multiple appRoot #303

@PatrickJS

Description

@PatrickJS

with more than one appRoot on the page we need to attach the preboot.init() after each appRoot

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Universal Angular 2</title>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" href="data:;base64,iVBORw0KGgo=">
  <base href="/">
</head>
<body>

  <app>
    Loading...
  </app>

  <my-app>
    Loading...
  </my-app>

</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Universal Angular 2</title>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" href="data:;base64,iVBORw0KGgo=">
  <base href="/">
</head>
<body>

  <script>// preboot source</script>
  <app>
    Loading...
  </app>
  <script>preboot.init({ appRoot: 'app' })</script>
  <my-app>
    Loading...
  </my-app>
  <script>preboot.init({ appRoot: 'my-app' })</script>

</body>
</html>

currently hardcoded to the first one

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions