Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

@rohmer/ng-portal

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Issues
File Explorer

Advanced tools

@rohmer/ng-portal

Portals made easy :wink:

    2.0.0latest
    GitHub

Version published
Maintainers
1
Weekly downloads
478
decreased by-6.27%

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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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