3
,而不是主机我只是尽量让动画具有角4,我看到的教程,使用主机组件使用@HostBindings在角4
import { Component, OnInit, HostBinding } from '@angular/core';
import { AngularFire, AuthProviders, AuthMethods } from 'angularfire2';
import { Router } from '@angular/router';
import { moveIn } from '../router.animations';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css'],
animations: [moveIn()],
host: {'[@moveIn]': ''}
})
,但它让我看到主机属性 下错误“[tslint ]使用@hostBindings和@HostListeners而不是主机属性“
@JGFMK他们不会被弃用。有人添加了一个tslint来标记这些,它没有任何意义。这是一个非常有效的功能。 – cgTag