
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@ngui/popup
Advanced tools
Angular2 Popup(ModaL) directive
After 0.5.0 or higher, ng2-popup has been changed to @ngui/popup. Here are the changes;
ng2-popup is changed to @ngui/popup.ng2-popup is changed to ngui-popup.Ng2PopupModule is changed to NguiPopupModule.
Plunker Example: https://plnkr.co/edit/zaESbL?p=preview"
install @ngui/popup
$ npm install @ngui/popup --save
add map and packages to your systemjs.config.js
map['@ngui/popup'] = 'node_modules/@ngui/popup/dist/popup.umd.js';
import NguiPopupModule to your AppModule
import { NgModule } from '@angular/core';
import { FormsModule } from "@angular/forms";
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { NguiPopupModule } from '@ngui/popup';
@NgModule({
imports: [BrowserModule, FormsModule, NguiPopupModule],
declarations: [AppComponent],
bootstrap: [ AppComponent ]
})
export class AppModule { }
For full example, please check out test directory to see the example of;
systemjs.config.jsapp.module.tsapp.component.ts.<ngui-popup #popup></ngui-popup>,
To open/close popup from your component, add ViewChild line into your component
export class AppComponent {
@ViewChild(NguiPopupComponent) popup: NguiPopupComponent;
openPopup() {
this.popup.open(Ng2MessagePopupComponent, {
title: 'My Title',
message: 'My Message'
}
..
}
}
This module is only improved and maintained by contributors like you.
As a contributor, it's NOT required to be skilled in Javascript nor Angular2. You are only to be open-minded and interested in helping others. As a contributor, you do following;
In result of your active contribution, you will be listed as a core contributor on https://ng2-ui.github.io, and a member of ng2-ui too.
If you are interested in becoming a contributor and/or a member of ng-ui,
please send me email to allenhwkim AT gmail.com with your github id.
open(compoment, options)
opens popup with the given compnent and options
component: Component
Any component. To open a message popup, use Ng2MessagePopupComponent
There are two properties will be added when a component is used with open function
options
For Ng2MessagePopupComponent
{
OK: () => {
this.message = "Ok button is pressed";
},
CANCEL: () => {
this.message = "Cancel button is pressed";
this.popup.close();
}
}
close() closes the currently opened popup.
$ git clone https://github.com/ng2-ui/popup.git
$ cd popup
$ npm install
$ npm start
build and run
For Windows Environment (in CMD) $ .\build.cmd
For Mac Environment (in terminal) $ ./build.sh
start the server
$ npm start
FAQs
Angular2 Popup Directive
We found that @ngui/popup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.