You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`ToasterModule.forRoot()` is recommended for most applications as it will guarantee a single instance of the ToasterService, ensuring that all recipient containers observe the same ToasterService events.
95
95
96
+
For subsequent inclusions, use `ToasterModule.forChild()` to provide the `ToasterContainerComponent` only, ensuring that `ToasterService` is still held as a singleton at the root.
96
97
97
-
## Getting Started with Default Configuration - Manual Component Inclusion:
98
+
## Getting Started with Default Configuration - Manual Component Inclusion (obsolete >= 5.0.0):
Copy file name to clipboardexpand all lines: demo/angular-cli/README.md
+9-4
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,20 @@
1
1
# AngularCli
2
2
3
-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.0.
3
+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.6.7.
4
+
Due to local pathing support in order to test angular2-toaster locally, the following setup steps are required.
5
+
6
+
- run npm install
7
+
- delete all @angular node packages from node_modules
8
+
- delete @ngtools package from node_modules
9
+
- delete ng and ngc files from node_modules/.bin
4
10
5
11
## Development server
6
12
7
-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
13
+
Run `npm run start --aot` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
8
14
9
15
## Code scaffolding
10
16
11
-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class/module`.
17
+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12
18
13
19
## Build
14
20
@@ -21,7 +27,6 @@ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.
21
27
## Running end-to-end tests
22
28
23
29
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24
-
Before running the tests make sure you are serving the app via `ng serve`.
0 commit comments