How to use the @aurelia/jit-html-browser.BasicConfiguration.createContainer function in @aurelia/jit-html-browser

To help you get started, we’ve selected a few @aurelia/jit-html-browser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aurelia / aurelia / test / cypress / app / src / startup.ts View on Github external
import { NavCustomElement, ViewportCustomElement } from '@aurelia/router';
import { DebugConfiguration } from '@aurelia/debug';
import { BasicConfiguration } from '@aurelia/jit-html-browser';
import { Aurelia } from '@aurelia/runtime';

import { registerComponent } from './utils';

import { App } from './app';

import { RouterHome } from './components/router/home';
import { RouterWithNav } from './components/router/with-nav';

const container = BasicConfiguration.createContainer();

container.register(
  ViewportCustomElement as any,
  NavCustomElement as any
);

registerComponent(
  container,
  RouterHome as any,
  RouterWithNav as any
);

window['au'] = new Aurelia(container)
  .register(DebugConfiguration)
  .app({ host: document.querySelector('app'), component: App })
  .start();

@aurelia/jit-html-browser

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/) [![TypeScript](https://img.shields.io/badge/%3C%2F

MIT
Latest version published 5 years ago

Package Health Score

61 / 100
Full package analysis