Skip to content

neocomplexx/ng-neo-directives

Repository files navigation

ng-neo-directives

Command pattern for Angular

Installation

To install this library, run:

$ npm install ng-neo-directives --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 { NeoDirectivesModule } from 'nng-eo-directives';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify library as an import for default config in app.module
    NeoDirectivesModule.forRoot(null)
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }


// Import library in child modules in order to use directives
import { NeoDirectivesModule } from 'ng-neo-directives';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify library as an import
    NeoDirectivesModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class ChildModule { }

License

MIT © Neocomplexx

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published