This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ɵNoopAnimationDriver, AnimationDriver, ɵWebAnimationsDriver } from '@angular/animations/browser'; | |
export class AppAnimate implements AnimationDriver { | |
animationsDisabled = myVariableToDisableAnimations; | |
driver = this.animationsDisabled ? new ɵNoopAnimationDriver() : new ɵWebAnimationsDriver(); | |
validateStyleProperty() { | |
return this.driver.validateStyleProperty.apply(this.driver, arguments); | |
} | |
matchesElement() { | |
return this.driver.matchesElement.apply(this.driver, arguments); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createEnvFile() { | |
production=$1 | |
hmr=$2 | |
file=$3 | |
echo "export const environment = {" > $file | |
echo " production: $production," >> $file | |
echo " hmr: $hmr" >> $file | |
echo "};" >> $file | |
} |