-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Enum in an angular2-template and *ngIf #8588
Comments
This is by design I think ... See #2885 |
Oh wow it is the solution. Thanks for this tip. Just one line more and it works :) |
I had to make sure that my enum was of type 'Export'. Thanks :) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Hello,
I have a problem with using typescript enums in angular2 templates.
http://plnkr.co/edit/orQTAcYkySK3tU5wr1Me?p=preview
I hope the plunker works :)
The plunker example shows, that it is not possible to use enums with *ngIf or somethingelse in the angular2 template. But with the numeric value it works.
Is it possible to use the enum expression?
Thanks
The text was updated successfully, but these errors were encountered: