diff --git a/docs/toastNotifications.md b/docs/toastNotifications.md index 4a4990f..4024958 100644 --- a/docs/toastNotifications.md +++ b/docs/toastNotifications.md @@ -13,6 +13,7 @@ Import the `SimpleNotificationsModule` in to your `AppModule` export class AppModule { } ``` + Add the SimpleNotificationsComponent in to the component where you want to use the notifications. Or in your top level component for use in child components. ```js ... @@ -32,6 +33,13 @@ The onCreate and onDestroy Event Emitters emit the notification that was created ``` +**If your app cannot find the built JS files for this package,** you may need to tell your build script to scan the `angular2-notifications` directory. See the related issue #25. Example: + +```js +'angular2-notifications/*.+(js|js.map)', +'angular2-notifications/lib/*.+(js|js.map)' +``` + ## Creating Notifications This are the currently available access methods: @@ -118,4 +126,4 @@ this._notificationsService.success( maxLength: 10 } ) -``` \ No newline at end of file +```