Adding the polyfill with the newer, Webpack version of Angular CLI is easier:
-
Install with
npm install web-animations-js --save
-
Add to
polyfills.ts
:require('web-animations-js/web-animations.min');
It also worked if I do import 'web-animations-js/web-animations.min';
More Related Contents:
- angular-cli server – how to proxy API requests to another server?
- How to upgrade Angular CLI to the latest version
- How to bundle an Angular app for production
- Angular CLI Error: The serve command requires to be run in an Angular project, but a project definition could not be found
- Angular CLI SASS options
- PowerShell script add ‘–prod’ argument to build Angular CLI project
- How do I support Internet Explorer in an Angular 8 application?
- how to format date in Component of angular 5
- Angular-CLI proxy to backend doesn’t work
- How to decrease prod bundle size?
- angular-cli where is webpack.config.js file – new angular6 does not support ng eject
- What’s the difference between –base-href and –deploy-url parameters of angular-cli tool
- Dynamically load HTML template in angular2
- ctorParameters.map is not a function in angular2-mdl
- How to set environment via `ng serve` in Angular 6
- How to undo Angular 2 Cli ng-eject?
- Angular 6 – Could not find module “@angular-devkit/build-angular”
- Cannot find name ‘require’ after upgrading to Angular4
- Include assets when building angular library
- When to use ‘npm start’ and when to use ‘ng serve’?
- How to uninstall/upgrade Angular CLI?
- Implementing a plugin architecture / plugin system / pluggable framework in Angular 2, 4, 5, 6
- How to get rid of the warning .ts file is part of the TypeScript compilation but it’s unused
- How to rename a component in Angular CLI?
- How to execute only one test spec with angular-cli
- Syntax Error in Angular App: Unexpected token
- Angular 8 ng-build throwing MIME error with cordova
- Angular4 APP_INITIALIZER won’t delay initialization
- Angular5: Deploying Angular application to multiple clients
- angular cli exclude files/directory for `ng test –code-coverage`