Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

single-spa-angular

Package Overview
Dependencies
Maintainers
13
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

single-spa-angular - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

2

lib/single-spa-angular.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc