provideNoopAnimations
함수
사용 중단 권고v20.2부터
Returns the set of dependency-injection providers to disable animations in an application. See animations guide to learn more about animations in Angular.
사용 중단을 권고합니다.
@returns
Provider[]사용 시 참고사항
The function is useful when you want to bootstrap an application using
the bootstrapApplication function, but you need to disable animations
(for example, when running tests).
bootstrapApplication(RootComponent, {
providers: [
provideNoopAnimations()
]
});
상세 내용으로 이동