@Component({ selector: 'app-root', templateUrl: 'app.component.html', styleUrls: ['app.component.css'], animations: [ slideInAnimation // animation triggers go here ] }) export class AppComponent { @HostBinding('@.disabled') public animationsDisabled = false; }