ng-console-msg

## Installation


Keywords
angular, angular2
License
MIT
Install
npm install ng-console-msg@0.2.3

Documentation

ng-console-msg

Installation

To install this library, run:

$ npm install ng-console-msg --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 ng-console-msg

and then from your Angular app-component.ts:

import { Component } from '@angular/core';
import { ConsoleMsgService } from 'ng-console-msg';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css'],
  providers: [ConsoleMsgService]
})
export class AppComponent {

  constructor(private consoleMsgService: ConsoleMsgService) {
    this.consoleMsgService.print({
      logo: 'https://deer.co.jp/img/logo.png',
      body: '一緒にDeerで働きませんか?',
      link: 'https://deer.co.jp'
    });
  }
  
}

Preview

Development

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

$ npm run tsc

To lint all *.ts files:

$ npm run lint

License

MIT © Daichi Ninomiya