-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
Custom decorator doesn't work with aot compilation #13386
Comments
Have you seen this issue angular/angular-cli#2799 ? |
Nope. I did a search for 'decorator' before posting, but nothing relevant came up. |
Didn't realize it was a cli issue. Thanks for the link. |
closing as this is specific to angular-cli. |
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. |
I'm submitting a ... (check one with "x")
Current behavior
The decorator is called "authenticated" and calls the method it is decorating if the current user is authenticated, otherwise the login/signup modal is opened up instead.
Expected behavior
When I compile my app with the --aot flag (I'm using angular-cli), my custom decorator does not work as expected. This should continue to work the same with aot compilation.
Minimal reproduction of the problem with instructions
This is the code for the decorator:
This decorator can be used on any method of a class that implements the AuthenticatedServices interface like so:
Please tell us about your environment:
Language: TypeScript 2.0.3
Node (for AoT issues):
node --version
= 7.2.1The text was updated successfully, but these errors were encountered: