9.0.3 • Published 4 years ago
angular-content-portal v9.0.3
angular-content-portal
A simple library that uses the @angular/cdk library to give a quick way of portaling(?) content outside of your component.
Requirements
- Angular 9+
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
9.0.3
4 years ago
9.0.2
4 years ago
9.0.1
4 years ago
0.0.1
4 years ago
9.0.0
4 years ago
7.1.5
5 years ago
7.1.4
5 years ago
7.1.3
5 years ago
7.1.2
5 years ago
7.1.1
5 years ago
7.1.0
5 years ago
7.0.0
5 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.4.4
6 years ago
0.4.3
6 years ago
0.4.2
6 years ago
0.4.1
6 years ago
0.4.0
6 years ago
0.3.8
6 years ago
0.3.7
6 years ago
0.3.6
6 years ago
0.3.5
6 years ago
0.3.4
6 years ago
0.3.2
6 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.1.14
6 years ago
0.1.12
6 years ago
0.1.11
6 years ago
0.1.10
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.0
6 years ago