import { Component, OnInit } from '@angular/core'; import { trigger, state, style, animate, transition } from '@angular/animations'; import { fade } from "../animations/transitions"; @Component({ selector: 'test-other-page', templateUrl: './other-page.component.html', styleUrls: ['./other-page.component.css'], animations: [fade()] }) export class OtherPageComponent implements OnInit { constructor() { } ngOnInit() { } }