Norway Porridge Makers

    angular-messaging-library
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.6 • Public • Published

    Angular Messaging Library

    First crack at a library package...

    It's a simple messaging library that you send messages too and it displays them on a component

    In your component:

    import { MessagingLibraryService } from 'angular-messaging-library';
    
    ...
    
    constructor(private messageService: MessagingLibraryService) {   }
    
    ...
    
    this.messageService.addSuccessMessage('Message goes here');
    

    Wherever you want the messages to be displayed, add the component

    <lib-messaging-library></lib-messaging-library>
    

    It's pretty basic but I use it in a few of my projects so it seemed a good project to create a library with.

    Build

    see Angular documentation

    Running unit tests

    ng test

    Keywords

    none

    Install

    npm i angular-messaging-library

    DownloadsWeekly Downloads

    3

    Version

    1.1.6

    License

    none

    Unpacked Size

    64.6 kB

    Total Files

    21

    Last publish

    Collaborators

    • spiral99