0.4.2 • Published 6 years ago

single-spa-angular-cli v0.4.2

Weekly downloads
92
License
Apache-2.0
Repository
github
Last release
6 years ago

single-spa-angular-cli

Helpers for building single-spa applications which use Angular Cli.

Example

An example can be found in the single-spa-angular-cli-examples repository.

Quickstart

First, in the child application, run npm install --save single-spa-angular-cli. Then, in your single-spa application, do the following:

// loader.js

import { loader } from 'single-spa-angular-cli';

const lifecycles = loader({
    name: 'app1',
    selector: 'app1-root',
    baseHref: '/app1'
});

export const bootstrap = [
    lifecycles.bootstrap
];

export const mount = [
    lifecycles.mount
];

export const unmount = [
    lifecycles.unmount
];

export const unload = [
    lifecycles.unload
];

Options

All options are passed to single-spa-angular2 via the opts parameter when calling singleSpaAngularCli(opts). The following options are available:

  • name: (required) The name of the single spa application, ex : app.
  • selector: (required) The angular application root tag, ex : app-root.
  • container: (optional) The html container selector, ex : ".container" or "#container".
  • baseHref: (required) The base href of your angular cli app, ex : /app.

Full documentation here

An example can be found in the single-spa-angular-cli-examples repository.

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

1.0.0

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago