From 3a7cb6a95024545b53526458706d483d78d54212 Mon Sep 17 00:00:00 2001 From: Oytun Tez Date: Sat, 27 Aug 2016 18:31:26 -0400 Subject: [PATCH] Added a note about defining directories in angular-cli-builder See the related issue #25. --- docs/toastNotifications.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 +```