Also see React Slot Machine Button
There is currently not an official tool to publish a NgModule
as a npm package. So one way to use it for now is to download and put it into a project, or maybe use git-submodule
.
But according to the Angular team, there would be something coming out with Angular 6; so stay tuned. (reference issue)
This repo is a demo itself, run npm start
after running npm install
to see.
// ng-slot-machine-button
@Input() activeOnHover: boolean;
@Input() bottomToTop: boolean;
@Input() delay = 0;
@Input() duration = 0.5;
@Input() ease = Expo.easeInOut;
@Input() fadeDuration: number;
@Input() groupID: number;
@Input() isActive: boolean;
// Fade Back
@Input() fadeBack: boolean;
@Input() fadeBackDuration: number;
@Input() fadeBackEase = Linear.easeNone;
// ng-slot-machine-wheel
@Input() groupID: number;
@Input() delay = 0;