global options don't work with aot since 0.9.8
See original GitHub issuesteps to reproduce:
create a new application with angular cli 1.7.3 add angular2-notifications and setup the module in src/app/app.module.ts:
SimpleNotificationsModule.forRoot({
position:['top','right']
})
show a notification using the service e.g. by adding a constructor to src/app/app.component.ts
constructor(notificationsService: NotificationsService) {
setTimeout(() => {
notificationsService.alert('test');
}, 500);
}
add notification to src/app/app.component.html
<simple-notifications></simple-notifications>
- start application with
ng serve
go to localhost:4200 and notice that the notification is shown in the top right corner. - stop and restart with
ng serve -prod
go to localhost:4200 and notice that the notification is shown in the bottom right corner despite top being configured.
same result if options are passed via component input
<simple-notifications [options]="options"></simple-notifications>
output of ng -v
Angular CLI: 1.7.3
Node: 8.11.1
OS: darwin x64
Angular: 5.2.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cli: 1.7.3
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:6 (2 by maintainers)
Top Results From Across the Web
position not workig · Issue #313 · flauc/angular2-notifications · GitHub
position not workig #313 ... theClass icon. https://github.com/flauc/angular2-notifications#options ... global options don't work with aot since 0.9.8 #303.
Read more >Bug listing with status RESOLVED with resolution FIXED as at ...
... Bug:414 - "add global option to disable color output in portage" ... Bug:545 - "Mozilla 0.9.8 doesn't work" status:RESOLVED resolution:FIXED severity: ...
Read more >Quick start installation - CARLA Simulator - Read the Docs
Install CARLA and check for the installation in the /opt/ folder. The installation of CARLA 0.9. 7 instead of 0.9. 8 would be...
Read more >DeSmuME 0.9.8 released!
8 released! Yes, it's been a while since the last release, but we haven't been completely idle.
Read more >NetworkManager - ArchWiki
NetworkManager is a program for providing detection and configuration for systems to automatically connect to networks.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sadly not yet, but I will make time for it this weekend.
@flauc sorry, my bad, not all options are overridable (more info #313) tried to override
preventLastDuplicates