Skip to content

Commit

Permalink
Added a note about defining directories in angular-cli-builder
Browse files Browse the repository at this point in the history
See the related issue flauc#25.
  • Loading branch information
oytuntez authored Aug 27, 2016
1 parent 8ea6a6b commit 3a7cb6a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/toastNotifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
...
Expand All @@ -32,6 +33,13 @@ The onCreate and onDestroy Event Emitters emit the notification that was created
<simple-notifications [options]="options" (onCreate)="created($event)" (onDestroy)="destroyed($event)"></simple-notifications>
```

**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:
Expand Down Expand Up @@ -118,4 +126,4 @@ this._notificationsService.success(
maxLength: 10
}
)
```
```

0 comments on commit 3a7cb6a

Please sign in to comment.