0.2.3 • Published 7 years ago

ng-console-msg v0.2.3

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

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

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago