Socket
Socket
Sign inDemoInstall

@rohmer/ng-portal

Package Overview
Dependencies
7
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @rohmer/ng-portal

Portals made easy :wink:


Version published
Weekly downloads
2
decreased by-84.62%
Maintainers
1
Install size
9.62 MB
Created
Weekly downloads
 

Readme

Source

@rohmer/ng-portal

Portals made easy :wink:


Powered by Rohmer NPM Downloads Bundle Size Open Issues

Installation

  1. Install package

    npm install @rohmer/ng-portal --save
    // OR
    yarn add @rohmer/ng-portal
    
  2. Import the PortalModule in your module.

     import {PortalModule} from '@rohmer/ng-portal';
    
     @NgModule({
       // ...
       imports: [
         // ...
         PortalModule,
       ],
     })
    
  3. Define host elements to render content to.

    <rp-portal-host slot="any-slot-name"></rp-portal-host>
    <div rpPortalHost="another-slot-name"></div>
    
  4. Define content that should be rendered inside these hosts.

    <ng-template rpPortalSlot="any-slot-name">
        I'm rendered inside the slot called "any-slot-name".
    </ng-template>
    <ng-template rpPortalSlot="another-slot-name">
        I'm rendered inside the slot called "another-slot-name".    
    </ng-template>
    

FAQs

Last updated on 08 Feb 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc