W3cubDocs

/Angular

HammerModule

ngmodule

Adds support for HammerJS.

See more...

class HammerModule {
}

Description

Import this module at the root of your application so that Angular can work with HammerJS to detect gesture events.

Note that applications still need to include the HammerJS script itself. This module simply sets up the coordination layer between HammerJS and Angular's EventManager.

Providers

Provider
{
    provide: EVENT_MANAGER_PLUGINS,
    useClass: HammerGesturesPlugin,
    multi: true,
    deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Console, [new Optional(), HAMMER_LOADER]]
}
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] }

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/platform-browser/HammerModule