MdLiveAnnouncer is a service, which announces messages to several screenreaders.
| Name | Description |
|---|---|
announce(message, politeness) |
This announces a text message to the supported screenreaders. The politeness parameter sets the aria-live attribute on the announcer element |
The service can be injected in a component.
@Component({
selector: 'my-component'
providers: [MdLiveAnnouncer]
})
export class MyComponent {
constructor(live: MdLiveAnnouncer) {
live.announce("Hey Google");
}
}- JAWS (Windows)
- NVDA (Windows)
- VoiceOver (OSX and iOS)
- TalkBack (Android)