This library utilize Angular private API to disable animation. There is a chance that Angular might change it. If you have any doubt, please run test (karma start
) to make sure it works as it should be. (An easy way is trying to set disable as true, and see if it works. You can put this in your unit test as well.)
- Angular >=4.0.0
You can get it on npm.
npm install ngx-no-animation-for-dinosaur --save
1. npm i
2. npm run build
Enable Animation for only supported browser with polyfill
- Chrome
- Firefox 27+
- IE10+ (including Edge)
- Safari (iOS) 7.1+
- Safari (Mac) 9+
in ngModule:
import { BrowserSupportedAnimationsModule } from 'ngx-no-animation-for-dinosaur';
imports: [BrowserSupportedAnimationsModule.forRoot({disable: boolean})],
try demo under demo/cliDemo
Kudos to
-
This project is inspired by user2957238@StackOverflow answer
-
The build process is based on angular-library-starter by @robisim74