0.2.3 • Published 7 years ago
ng-console-msg v0.2.3
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: '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 tsc
To lint all *.ts
files:
$ npm run lint
License
MIT © Daichi Ninomiya