No Provider for MdTooltip
See original GitHub issueBug, feature request, or proposal:
When I inject the MdTooltip service into a component I get a No Provider for MdTooltip
error.
All other material components I use are working fine. Tooltips work fine too except for the injecting.
What is the expected behavior?
No runtime error.
What is the current behavior?
No Provider for MdTooltip
What are the steps to reproduce?
Create a new ng-cli app and inject MdTooltip. Example plnkr: http://plnkr.co/edit/UIzqoHLPqWMk2W0H5pRj?p=preview
What is the use-case or motivation for changing an existing behavior?
Using MdTooltip service functions such as show()
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
@angular/cli: 1.3.1 node: 7.6.0 os: darwin x64 @angular/animations: 4.3.5 @angular/cdk: 2.0.0-beta.8 @angular/common: 4.3.5 @angular/compiler: 4.3.5 @angular/core: 4.3.5 @angular/flex-layout: 2.0.0-rc.1 @angular/forms: 4.3.5 @angular/http: 4.3.5 @angular/material: 2.0.0-beta.8 @angular/platform-browser: 4.3.5 @angular/platform-browser-dynamic: 4.3.5 @angular/router: 4.3.5 @angular/cli: 1.3.1 @angular/compiler-cli: 4.3.5 @angular/language-service: 4.3.5
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (8 by maintainers)
Top GitHub Comments
@joejordanbrown not being able to open the tooltip on click is definitely a bug. It’ll be resolved by https://github.com/angular/material2/pull/6590.
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.