New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-content-portal

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-content-portal

[![Build Status](https://travis-ci.org/JohnCashmore/angular-content-portal.svg?branch=master)](https://travis-ci.org/JohnCashmore/angular-content-portal) [![Coverage Status](https://coveralls.io/repos/github/JohnCashmore/angular-content-portal/badge.svg?b

  • 9.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
45
Maintainers
2
Weekly downloads
 
Created
Source

angular-content-portal

Build Status Coverage Status dependencies Status devDependencies Status Codacy Badge

A simple library that uses the @angular/cdk library to give a quick way of portaling(?) content outside of your component.

Rick and Morty Portal Gun

Requirements

  • Angular 9+

Demo

StackBlitz demo

Installation

To install this library, run:

$ npm install angular-content-portal --save

Using angular-content-portal

From your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

import { AngularContentPortalModule } from 'angular-content-portal';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, AngularContentPortalModule],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {}
<!-- You can now use your library component in app.component.html -->
<ac-portal-outlet name="header-actions"></ac-portal-outlet>

then

<!-- You can now use your library component in user/create-user.component.html -->
<ac-portal name="header-actions">
  <button>Add user</button>
</ac-portal>

License

MIT © John Cashmore

FAQs

Package last updated on 12 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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