ng-touch-actions-lib
v0.0.5
Published
This library is a wrapper for hamemr js to usage in angular projects. To use hammerjs event just set `libTouchActions` directive to your element.
Readme
NgTouchActionsLib
This library is a wrapper for hamemr js to usage in angular projects.
To use hammerjs event just set libTouchActions directive to your element.
Server Side Rendering problem
If you use server side rendering you need to install domino. And insert code below in you server script:
import { createWindow } from 'domino';
import { readFileSync } from 'fs';
...
const template = readFileSync(join(DIST_FOLDER, 'index.html')).toString();
const win = createWindow(template);
global['window'] = win;
global['document'] = win.document;