0.2.3 • Published 8 years ago
ng-console-msg v0.2.3
ng-console-msg
Installation
To install this library, run:
$ npm install ng-console-msg --saveConsuming 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-msgand 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: 'Will not you work with Deer together?',
link: 'https://deer.co.jp'
});
}
}Preview
Development
To generate all *.js, *.js.map and *.d.ts files:
$ npm run tscTo lint all *.ts files:
$ npm run lintLicense
MIT © Daichi Ninomiya