Skip to content

Instantly share code, notes, and snippets.

@mohanramphp
Created June 17, 2018 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohanramphp/d798d826d86014614dd96ae8cb30ca25 to your computer and use it in GitHub Desktop.
Save mohanramphp/d798d826d86014614dd96ae8cb30ca25 to your computer and use it in GitHub Desktop.
To show how to inlcude the library module in app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { RatifyModule } from 'ratify'; // <-- import the RatifyModule from ratify library we built
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
RatifyModule // <-- Import the module to use the exported component from the module
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment