question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

global options don't work with aot since 0.9.8

See original GitHub issue

steps 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>
  1. start application with ng serve go to localhost:4200 and notice that the notification is shown in the top right corner.
  2. 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:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
flauccommented, Apr 11, 2018

Sadly not yet, but I will make time for it this weekend.

0reactions
evxncommented, Apr 25, 2018

@flauc sorry, my bad, not all options are overridable (more info #313) tried to override preventLastDuplicates

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found