single-spa-angular
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -57,3 +57,3 @@ "use strict"; | ||
function bootstrap(opts) { | ||
function bootstrap(opts, props) { | ||
return Promise.resolve().then(function () { | ||
@@ -60,0 +60,0 @@ // In order for multiple Angular apps to work concurrently on a page, they each need a unique identifier. |
{ | ||
"name": "single-spa-angular", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Helpers for building single-spa applications which use Angular 2", | ||
@@ -5,0 +5,0 @@ "main": "lib/single-spa-angular.js", |
@@ -15,3 +15,3 @@ # single-spa-angular | ||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; | ||
import {ApplicationRef} from '@angular/core'; | ||
import {ApplicationRef, NgZone} from '@angular/core'; | ||
import singleSpaAngular from 'single-spa-angular'; | ||
@@ -28,2 +28,3 @@ import mainModule from './main-module.ts'; | ||
ApplicationRef, | ||
NgZone, | ||
}) | ||
@@ -43,2 +44,3 @@ | ||
- `template`: (required) An html string that will be put into the DOM Element returned by `domElementGetter`. This template can be anything, but it is recommended that you keeping it simple by making it only one Angular component. For example, `<my-component />` is recommended, but `<div><my-component /><span>Hello</span><another-component /></div>` is allowed. Note that `innerHTML` is used to put the template onto the DOM. | ||
- `NgZone`: (optional, but HIGHLY recommended) The NgZone class. Providing this allows you to have multiple angular apps active at the same time. | ||
- `Router`: (optional) The angular router class. This is required when you are using `@angular/router` and must be used in conjunction with the `ApplicationRef` option. | ||
@@ -45,0 +47,0 @@ - `ApplicationRef`: (optional) The angular application ref interface. This is required when you are using `@angular/router` and must be used in conjunction with the `Router` option. |
@@ -46,3 +46,3 @@ const defaultOpts = { | ||
function bootstrap(opts) { | ||
function bootstrap(opts, props) { | ||
return Promise.resolve().then(() => { | ||
@@ -49,0 +49,0 @@ // In order for multiple Angular apps to work concurrently on a page, they each need a unique identifier. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37240
52