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
{{ message }}
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Using --build-optimizer on @angular/cli 1.4.1 generates incorrect code for a module of @ng-bootstrap
The enum ModalDismissReasons is not correctly referenced, it evaluates to undefined when accessed via o.ModalDismissReasons. Instead of referencing to it as a, it is still referenced as ModalDismissReasons. The source code is here
(resubmitting from angular/angular#19137 by @achimha)
I'm submitting a...
Current behavior
Using
--build-optimizer
on @angular/cli 1.4.1 generates incorrect code for a module of @ng-bootstrapThe enum
ModalDismissReasons
is not correctly referenced, it evaluates toundefined
when accessed viao.ModalDismissReasons
. Instead of referencing to it asa
, it is still referenced asModalDismissReasons
. The source code is herehttps://github.com/ng-bootstrap/ng-bootstrap/blob/0c03671c52500f13387deeaf31f815372d364c26/src/modal/modal-window.ts#L45
Expected behavior
Without --build-optimizer, the generated code looks like this:
It seems that the build optimizer is responsible for the enum lookup using the original Typescript identifier instead of the generated enum function.
This could be a TS bug of course. Using Typescript 2.5.2.
Environment
The text was updated successfully, but these errors were encountered: