После импорта модуля BrowserAnimationModule в Module.ts файл (с помощью npm install
@ angular / animations)
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@NgModule({
...,
imports: [
...,
BrowserAnimationsModule
],
...
})
все еще показывает
Ошибка: найдено свойство syntheti c @animate. Пожалуйста, включите "BrowserAnimationsModule" или "NoopAnimationsModule" в ваше приложение
На контроле-> консоли
ERROR Error: Found the synthetic property @animate. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.
at checkNoSyntheticProp (platform-browser.js:2088)
at DefaultDomRenderer2.setProperty (platform-browser.js:2052)
at BaseAnimationRenderer.setProperty (animations.js:501)
at DebugRenderer2.setProperty (core.js:40022)
at setElementProperty (core.js:37214)
at checkAndUpdateElementValue (core.js:37124)
at checkAndUpdateElementInline (core.js:37052)
at checkAndUpdateNodeInline (core.js:38468)
at checkAndUpdateNode (core.js:38411)
at debugCheckAndUpdateNode (core.js:39433)