Skip to content
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

ElementRef.nativeElement has no type (any) #14488

Closed
goleary opened this issue Feb 15, 2017 · 2 comments
Closed

ElementRef.nativeElement has no type (any) #14488

goleary opened this issue Feb 15, 2017 · 2 comments

Comments

@goleary
Copy link

@goleary goleary commented Feb 15, 2017

I'm submitting a ... (check one with "x")

[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature 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 vs code the type of ElementRef.nativeElement is any.
Expected behavior
shouldn't the type be Element so 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 =

@goleary goleary mentioned this issue Feb 15, 2017
0 of 3 tasks complete
@devoto13
Copy link
Contributor

@devoto13 devoto13 commented Feb 15, 2017

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.

@goleary goleary closed this Feb 15, 2017
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Sep 10, 2019

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.