0.1.8 • Published 7 years ago

rt-factotum v0.1.8

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

rt-factotum

Is a helper module :)

Installation

To install this library, run:

$ npm install rt-factotum --save

Consuming your library

Once you have published your library to npm, you can import your library in any Angular application by running:

$ npm install rt-factotum

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { FactotumModule } from 'rt-factotum';

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

    // Specify your library as an import
    FactotumModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Usage

To use the Logger, you will need import it locally, then call one of the logging functions

import { Component } from '@angular/core';
import { RtFactotumService } from 'rt-factotum';

@Component({
  selector: 'your-component',
  templateUrl: './your.component.html',
  styleUrls: ['your.component.less'],
  providers: [RtFactotumService]
})
export class YourComponent {
    constructor(private rtFactotum: RtFactotumService) {
    };
}

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © David Fannin

0.1.8

7 years ago

0.1.5

7 years ago