Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upElementRef.nativeElement has no type (any) #14488
Closed
Comments
|
No, it shouldn't, because Angular can be used on other platforms, not only web. See #13139 for discussions and some workarounds. And I think this can be closed as duplicate. |
|
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm submitting a ... (check one with "x")
Current behavior
using vs code the type of
ElementRef.nativeElementisany.Expected behavior
shouldn't the type be
Elementso we can get code completion and type checking?Minimal reproduction of the problem with instructions
plnkr won't work because it doesn't do type checking (to my knowledge)
What is the motivation / use case for changing the behavior?
so we can get code completion and type checking
Please tell us about your environment:
windows 10 vs code
Angular version: 2.4.1
Browser: not a browser issue
Language: [all | TypeScript X.X | ES6/7 | ES5]
typescript 2.1.5
Node (for AoT issues):
node --version=