2.0.5 • Published 7 years ago
ng-neo-modal v2.0.5
ng-neo-modal
Modal replacement for javascript's popup boxes
Installation
To install this library, run:
$ npm install ng-neo-modal --save
and then from your Angular AppModule
:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import library
import { NeoModalModule } from 'ng-neo-modal';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Specify library as an import
NeoModalModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Once your library is imported, inject service
constructor(neoModalService: NeoModalService){}
// In any function
this.neoModalService.alert('This is an alert');
License
MIT © Neocomplexx